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:
hjk
2019-08-27 10:01:24 +02:00
parent 0979a58689
commit 989b8a9e6d

View File

@@ -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();
}); });
} }