aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/perfprofiler')
-rw-r--r--src/plugins/perfprofiler/perfprofilerplugin.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/perfprofiler/perfprofilerplugin.cpp b/src/plugins/perfprofiler/perfprofilerplugin.cpp
index 26f2272204d..d6f791b553e 100644
--- a/src/plugins/perfprofiler/perfprofilerplugin.cpp
+++ b/src/plugins/perfprofiler/perfprofilerplugin.cpp
@@ -69,12 +69,13 @@ public:
RunControl::registerWorkerCreator(ProjectExplorer::Constants::PERFPROFILER_RUN_MODE,
[](RunControl *runControl){ return new PerfProfilerRunner(runControl); });
-
- auto constraint = [](RunConfiguration *) { return true; };
- RunControl::registerWorker<PerfProfilerRunner>
- (ProjectExplorer::Constants::PERFPROFILER_RUN_MODE, constraint);
}
+ RunWorkerFactory profilerWorkerFactory{
+ RunWorkerFactory::make<PerfProfilerRunner>(),
+ {ProjectExplorer::Constants::PERFPROFILER_RUN_MODE}
+ };
+
PerfOptionsPage optionsPage;
PerfProfilerTool profilerTool;
};