!3867 Fix Profiling Data Flush Failed while GLOG_v > 1

Merge pull request !3867 from caifubi/profiling
This commit is contained in:
mindspore-ci-bot 2020-08-03 20:51:22 +08:00 committed by Gitee
commit 0a89563f37
1 changed files with 2 additions and 1 deletions

View File

@ -181,7 +181,8 @@ bool ProfilingManager::StopProfiling() {
}
Msprof::Engine::Reporter *reporter = PluginImpl::GetPluginReporter();
if (reporter != nullptr) {
MS_LOG(INFO) << "report data end, ret = " << reporter->Flush();
auto ret = reporter->Flush();
MS_LOG(INFO) << "report data end, ret = " << ret;
}
auto rt_ret = rtProfilerStop();