2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-03-25 09:25:17 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-03-11 12:22:57 +01:00
|
|
|
|
2012-02-24 10:47:17 +01:00
|
|
|
#include "qmlprofilerstatemanager.h"
|
2013-07-30 10:34:43 +02:00
|
|
|
|
2019-03-13 08:06:08 +01:00
|
|
|
#include <projectexplorer/runcontrol.h>
|
2017-05-29 16:04:31 +02:00
|
|
|
|
2011-04-15 12:59:44 +02:00
|
|
|
#include <utils/outputformat.h>
|
2017-05-29 16:04:31 +02:00
|
|
|
#include <utils/port.h>
|
|
|
|
|
|
|
|
#include <qmldebug/qmloutputparser.h>
|
2011-03-11 12:22:57 +01:00
|
|
|
|
2023-01-06 15:32:39 +01:00
|
|
|
namespace QmlProfiler::Internal {
|
2011-03-11 12:22:57 +01:00
|
|
|
|
2017-05-29 13:14:16 +02:00
|
|
|
class QmlProfilerRunner : public ProjectExplorer::RunWorker
|
2011-03-11 12:22:57 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2011-06-30 13:44:22 +02:00
|
|
|
|
2011-03-11 12:22:57 +01:00
|
|
|
public:
|
2017-05-29 13:14:16 +02:00
|
|
|
QmlProfilerRunner(ProjectExplorer::RunControl *runControl);
|
|
|
|
~QmlProfilerRunner() override;
|
2011-03-11 12:22:57 +01:00
|
|
|
|
2017-06-13 11:43:04 +02:00
|
|
|
void setServerUrl(const QUrl &serverUrl);
|
2017-06-14 10:50:18 +02:00
|
|
|
QUrl serverUrl() const;
|
2017-05-29 16:04:31 +02:00
|
|
|
|
2012-02-24 10:47:17 +01:00
|
|
|
void registerProfilerStateManager( QmlProfilerStateManager *profilerState );
|
|
|
|
|
|
|
|
void cancelProcess();
|
2017-05-29 13:14:16 +02:00
|
|
|
void notifyRemoteFinished();
|
2016-03-02 13:57:37 +01:00
|
|
|
|
|
|
|
private:
|
2017-05-29 16:04:31 +02:00
|
|
|
void start() override;
|
|
|
|
void stop() override;
|
|
|
|
|
2012-02-24 10:47:17 +01:00
|
|
|
void profilerStateChanged();
|
|
|
|
|
2017-05-29 13:14:16 +02:00
|
|
|
class QmlProfilerRunnerPrivate;
|
|
|
|
QmlProfilerRunnerPrivate *d;
|
2011-03-11 12:22:57 +01:00
|
|
|
};
|
|
|
|
|
2017-08-09 10:46:21 +02:00
|
|
|
class LocalQmlProfilerSupport : public ProjectExplorer::SimpleTargetRunner
|
2017-06-26 16:48:28 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-08-07 18:05:15 +02:00
|
|
|
LocalQmlProfilerSupport(ProjectExplorer::RunControl *runControl);
|
|
|
|
LocalQmlProfilerSupport(ProjectExplorer::RunControl *runControl,
|
2017-06-26 16:48:28 +02:00
|
|
|
const QUrl &serverUrl);
|
|
|
|
};
|
|
|
|
|
2023-11-21 18:09:22 +01:00
|
|
|
void setupQmlProfilerRunning();
|
2023-01-06 15:32:39 +01:00
|
|
|
|
|
|
|
} // QmlProfiler::Internal
|