!55756 refine profiling log

Merge pull request !55756 from zyli2020/dev
This commit is contained in:
i-robot 2023-06-27 08:32:30 +00:00 committed by Gitee
commit 4f6817f3f4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -264,11 +264,11 @@ void CollectHostInfo(const std::string &module_name, const std::string &event, c
auto profiler_manager = profiler::ProfilerManager::GetInstance();
MS_EXCEPTION_IF_NULL(profiler_manager);
if (!profiler_manager->GetProfilingEnableFlag()) {
MS_LOG(INFO) << "Profiler is not enabled, no need to record Host info.";
MS_LOG(DEBUG) << "Profiler is not enabled, no need to record Host info.";
return;
}
if (!profiler_manager->EnableCollectHost()) {
MS_LOG(INFO) << "Profiler profile_framework is not enabled, no need to record Host info.";
MS_LOG(DEBUG) << "Profiler profile_framework is not enabled, no need to record Host info.";
return;
}
auto output_path = profiler_manager->ProfileDataPath();