diff --git a/src/plugins/perfprofiler/perfprofilerruncontrol.cpp b/src/plugins/perfprofiler/perfprofilerruncontrol.cpp index 70aa2f2308b..73c3d8b34aa 100644 --- a/src/plugins/perfprofiler/perfprofilerruncontrol.cpp +++ b/src/plugins/perfprofiler/perfprofilerruncontrol.cpp @@ -108,10 +108,6 @@ public: runner->setEnvironment(runControl->environment()); runControl->appendMessage("Starting Perf: " + cmd.toUserOutput(), NormalMessageFormat); }); - - // In the local case, the parser won't automatically stop when the recorder does. So we need - // to mark the recorder as essential, too. - runner->setEssential(true); return runner; }); @@ -143,6 +139,7 @@ public: perfParserWorker->addStartDependency(perfRecordWorker); perfParserWorker->addStopDependency(perfRecordWorker); + perfRecordWorker->addStopDependency(perfParserWorker); PerfProfilerTool::instance()->onWorkerCreation(runControl); auto tool = PerfProfilerTool::instance();