ios: add qml profiler support

Change-Id: I6dbea675a77ed0d151dc6bbdcfa501c00107998c
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Fawzi Mohamed
2014-03-26 09:58:55 +01:00
parent 04948228bb
commit 2ef08b7580
6 changed files with 267 additions and 4 deletions

View File

@@ -34,6 +34,7 @@
#include "iosrunconfiguration.h"
#include "iosruncontrol.h"
#include "iosmanager.h"
#include "iosanalyzesupport.h"
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorerconstants.h>
@@ -155,7 +156,8 @@ IosRunControlFactory::IosRunControlFactory(QObject *parent)
bool IosRunControlFactory::canRun(RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode) const
{
if (mode != NormalRunMode && mode != DebugRunMode)
if (mode != NormalRunMode && mode != DebugRunMode && mode != QmlProfilerRunMode
&& mode != DebugRunModeWithBreakOnMain)
return false;
return qobject_cast<IosRunConfiguration *>(runConfiguration);
}
@@ -176,6 +178,8 @@ RunControl *IosRunControlFactory::create(RunConfiguration *runConfig,
}
if (mode == NormalRunMode)
res = new Ios::Internal::IosRunControl(rc);
else if (mode == QmlProfilerRunMode)
res = IosAnalyzeSupport::createAnalyzeRunControl(rc, errorMessage);
else
res = IosDebugSupport::createDebugRunControl(rc, errorMessage);
if (devId.isValid())