diff --git a/src/plugins/remotelinux/remotelinuxanalyzesupport.cpp b/src/plugins/remotelinux/remotelinuxanalyzesupport.cpp index de1a9efde1c..4cdd6f9d4e7 100644 --- a/src/plugins/remotelinux/remotelinuxanalyzesupport.cpp +++ b/src/plugins/remotelinux/remotelinuxanalyzesupport.cpp @@ -89,62 +89,4 @@ void RemoteLinuxQmlProfilerSupport::start() SimpleTargetRunner::start(); } - -// RemoteLinuxPerfSupport - -RemoteLinuxPerfSupport::RemoteLinuxPerfSupport(RunControl *runControl) - : RunWorker(runControl) -{ - setDisplayName("RemoteLinuxPerfSupport"); - - RunConfiguration *runConfiguration = runControl->runConfiguration(); - QTC_ASSERT(runConfiguration, return); - IRunConfigurationAspect *perfAspect = - runConfiguration->extraAspect("Analyzer.Perf.Settings"); - QTC_ASSERT(perfAspect, return); - m_perfRecordArguments = - perfAspect->currentSettings()->property("perfRecordArguments").toStringList() - .join(' '); - - auto toolRunner = runControl->createWorker(runControl->runMode()); - toolRunner->addStartDependency(this); -// connect(&m_outputGatherer, &QmlDebug::QmlOutputParser::waitingForConnectionOnPort, -// this, &RemoteLinuxPerfSupport::remoteIsRunning); - -// addDependency(FifoCreatorWorkerId); -} - -void RemoteLinuxPerfSupport::start() -{ -// m_remoteFifo = targetRunner()->fifo(); - if (m_remoteFifo.isEmpty()) { - reportFailure(tr("FIFO for profiling data could not be created.")); - return; - } - -// ApplicationLauncher *runner = targetRunner()->applicationLauncher(); - - auto r = runnable().as(); - - r.commandLineArguments = "-c 'perf record -o - " + m_perfRecordArguments - + " -- " + r.executable + " " - + r.commandLineArguments + " > " + m_remoteFifo - + "'"; - r.executable = "sh"; - - connect(&m_outputGatherer, SIGNAL(remoteStdout(QByteArray)), - runControl(), SIGNAL(analyzePerfOutput(QByteArray))); - connect(&m_outputGatherer, SIGNAL(finished(bool)), - runControl(), SIGNAL(perfFinished())); - - StandardRunnable outputRunner; - outputRunner.executable = "sh"; - outputRunner.commandLineArguments = QString("-c 'cat %1 && rm -r `dirname %1`'").arg(m_remoteFifo); - m_outputGatherer.start(outputRunner, device()); -// remoteIsRunning(); -// runControl()->notifyRemoteSetupDone(d->qmlPort); - -// runner->start(r, device()); -} - } // namespace RemoteLinux diff --git a/src/plugins/remotelinux/remotelinuxanalyzesupport.h b/src/plugins/remotelinux/remotelinuxanalyzesupport.h index 7735b7dbb1c..431829aa1bd 100644 --- a/src/plugins/remotelinux/remotelinuxanalyzesupport.h +++ b/src/plugins/remotelinux/remotelinuxanalyzesupport.h @@ -48,20 +48,4 @@ private: }; -class REMOTELINUX_EXPORT RemoteLinuxPerfSupport : public ProjectExplorer::RunWorker -{ - Q_OBJECT - -public: - RemoteLinuxPerfSupport(ProjectExplorer::RunControl *runControl); - -private: - void start() override; - - QString m_remoteFifo; - QString m_perfRecordArguments; - - ProjectExplorer::ApplicationLauncher m_outputGatherer; -}; - } // namespace RemoteLinux diff --git a/src/plugins/remotelinux/remotelinuxplugin.cpp b/src/plugins/remotelinux/remotelinuxplugin.cpp index 78b82378df1..cc18906fbee 100644 --- a/src/plugins/remotelinux/remotelinuxplugin.cpp +++ b/src/plugins/remotelinux/remotelinuxplugin.cpp @@ -63,7 +63,6 @@ bool RemoteLinuxPlugin::initialize(const QStringList &arguments, RunControl::registerWorker(NORMAL_RUN_MODE, constraint); RunControl::registerWorker(DEBUG_RUN_MODE, constraint); RunControl::registerWorker(QML_PROFILER_RUN_MODE, constraint); - //RunControl::registerWorker(PERFPROFILER_RUN_MODE, constraint); addAutoReleasedObject(new GenericLinuxDeviceConfigurationFactory); addAutoReleasedObject(new RemoteLinuxRunConfigurationFactory);