From 98ccd012af5590b21dc0dcac6fe58b73d17574bb Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 28 Jan 2015 19:13:30 +0100 Subject: [PATCH] Introduce perf profiler run mode Change-Id: I6e53dae3ba42e938b418a6657e677953cf7da4e9 Reviewed-by: Joerg Bornemann --- src/plugins/android/androidrunfactories.cpp | 1 + src/plugins/projectexplorer/projectexplorerconstants.h | 3 ++- src/plugins/qnx/qnxruncontrolfactory.cpp | 1 + src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/android/androidrunfactories.cpp b/src/plugins/android/androidrunfactories.cpp index f5661f51f22..7e8673aa6a0 100644 --- a/src/plugins/android/androidrunfactories.cpp +++ b/src/plugins/android/androidrunfactories.cpp @@ -82,6 +82,7 @@ RunControl *AndroidRunControlFactory::create(RunConfiguration *runConfig, case MemcheckRunMode: case MemcheckWithGdbRunMode: case ClangStaticAnalyzerMode: + case PerfProfilerRunMode: QTC_CHECK(false); // The other run modes are not supported } return 0; diff --git a/src/plugins/projectexplorer/projectexplorerconstants.h b/src/plugins/projectexplorer/projectexplorerconstants.h index 997a7483715..72235e76406 100644 --- a/src/plugins/projectexplorer/projectexplorerconstants.h +++ b/src/plugins/projectexplorer/projectexplorerconstants.h @@ -275,7 +275,8 @@ enum RunMode { CallgrindRunMode, MemcheckRunMode, MemcheckWithGdbRunMode, - ClangStaticAnalyzerMode + ClangStaticAnalyzerMode, + PerfProfilerRunMode }; } // namespace ProjectExplorer diff --git a/src/plugins/qnx/qnxruncontrolfactory.cpp b/src/plugins/qnx/qnxruncontrolfactory.cpp index dd52cc799b4..2867fa29c6b 100644 --- a/src/plugins/qnx/qnxruncontrolfactory.cpp +++ b/src/plugins/qnx/qnxruncontrolfactory.cpp @@ -196,6 +196,7 @@ RunControl *QnxRunControlFactory::create(RunConfiguration *runConfig, RunMode mo connect(runControl, SIGNAL(finished()), analyzeSupport, SLOT(handleProfilingFinished())); return runControl; } + case PerfProfilerRunMode: case NoRunMode: case CallgrindRunMode: case MemcheckRunMode: diff --git a/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp b/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp index 4295c39a75e..f8a2517527a 100644 --- a/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp +++ b/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp @@ -124,6 +124,7 @@ RunControl *RemoteLinuxRunControlFactory::create(RunConfiguration *runConfig, Ru connect(runControl, SIGNAL(finished()), analyzeSupport, SLOT(handleProfilingFinished())); return runControl; } + case PerfProfilerRunMode: case NoRunMode: case CallgrindRunMode: case MemcheckRunMode: