blob: 8fe6e2e7580e86bcb3cd269d091555477e709765 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "perfsettings.h"
#include <coreplugin/dialogs/ioptionspage.h>
#include <QProcess>
QT_BEGIN_NAMESPACE
class QPushButton;
class QTableView;
QT_END_NAMESPACE
namespace Utils { class QtcProcess; }
namespace PerfProfiler {
namespace Internal {
class PerfConfigWidget : public Core::IOptionsPageWidget
{
Q_OBJECT
public:
explicit PerfConfigWidget(PerfSettings *settings, QWidget *parent = nullptr);
~PerfConfigWidget();
void updateUi();
void setTarget(ProjectExplorer::Target *target);
void setTracePointsButtonVisible(bool visible);
private:
void apply() final;
void readTracePoints();
void handleProcessDone();
PerfSettings *m_settings;
std::unique_ptr<Utils::QtcProcess> m_process;
QTableView *eventsView;
QPushButton *useTracePointsButton;
QPushButton *addEventButton;
QPushButton *removeEventButton;
QPushButton *resetButton;
};
} // namespace Internal
} // namespace PerfProfiler
|