Browse Source

!4311 Fix minddata monitoring

Merge pull request !4311 from anthonyaje/monitor_fix
tags/v0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
2905fb8c64
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/minddata/dataset/engine/perf/monitor.cc

+ 1
- 1
mindspore/ccsrc/minddata/dataset/engine/perf/monitor.cc View File

@@ -38,8 +38,8 @@ Status Monitor::operator()() {
while (!this_thread::is_interrupted() && !(tree_->isFinished())) { while (!this_thread::is_interrupted() && !(tree_->isFinished())) {
for (auto &node : tree_->GetProfilingManager()->GetSamplingNodes()) { for (auto &node : tree_->GetProfilingManager()->GetSamplingNodes()) {
RETURN_IF_NOT_OK(node.second->Sample()); 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. // Output all profiling data upon request.


Loading…
Cancel
Save