diff --git a/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc b/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc index 8bd7940f3e..bb7c1eae90 100644 --- a/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc +++ b/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc @@ -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();