!4311 Fix minddata monitoring

Merge pull request !4311 from anthonyaje/monitor_fix
This commit is contained in:
mindspore-ci-bot 2020-08-12 04:43:17 +08:00 committed by Gitee
commit 2905fb8c64
1 changed files with 1 additions and 1 deletions

View File

@ -38,8 +38,8 @@ Status Monitor::operator()() {
while (!this_thread::is_interrupted() && !(tree_->isFinished())) {
for (auto &node : tree_->GetProfilingManager()->GetSamplingNodes()) {
RETURN_IF_NOT_OK(node.second->Sample());
std::this_thread::sleep_for(std::chrono::milliseconds(sampling_interval_));
}
std::this_thread::sleep_for(std::chrono::milliseconds(sampling_interval_));
}
// Output all profiling data upon request.