forked from qt-creator/qt-creator
Android: Rename a 'profiler' to 'worker'
Also used for the preview runner. Change-Id: I3f8ba0890bc36799bddcf1137bd98a2b6d851382 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -40,11 +40,11 @@ AndroidQmlToolingSupport::AndroidQmlToolingSupport(RunControl *runControl,
|
|||||||
auto runner = new AndroidRunner(runControl, intentName);
|
auto runner = new AndroidRunner(runControl, intentName);
|
||||||
addStartDependency(runner);
|
addStartDependency(runner);
|
||||||
|
|
||||||
auto profiler = runControl->createWorker(QmlDebug::runnerIdForRunMode(runControl->runMode()));
|
auto worker = runControl->createWorker(QmlDebug::runnerIdForRunMode(runControl->runMode()));
|
||||||
profiler->addStartDependency(this);
|
worker->addStartDependency(this);
|
||||||
|
|
||||||
connect(runner, &AndroidRunner::qmlServerReady, this, [this, profiler](const QUrl &server) {
|
connect(runner, &AndroidRunner::qmlServerReady, this, [this, worker](const QUrl &server) {
|
||||||
profiler->recordData("QmlServerUrl", server);
|
worker->recordData("QmlServerUrl", server);
|
||||||
reportStarted();
|
reportStarted();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user