Fix profiling data Flush failed in GLOG_v > 1

This commit is contained in:
caifubi 2020-08-03 14:13:03 +08:00
parent fc259aebcf
commit d01ca09e41
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();