blob: f54c1cbb5bec3a8e4f8ade84bb845fe7bd55fd7f (
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
|
// 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 "perfprofiler_global.h"
#include <projectexplorer/runconfiguration.h>
#include <QObject>
namespace PerfProfiler {
class PERFPROFILER_EXPORT PerfSettings final : public ProjectExplorer::ISettingsAspect
{
Q_OBJECT
Q_PROPERTY(QStringList perfRecordArguments READ perfRecordArguments NOTIFY changed)
public:
explicit PerfSettings(ProjectExplorer::Target *target = nullptr);
~PerfSettings() final;
void readGlobalSettings();
void writeGlobalSettings() const;
QStringList perfRecordArguments() const;
void resetToDefault();
Utils::IntegerAspect period;
Utils::IntegerAspect stackSize;
Utils::SelectionAspect sampleMode;
Utils::SelectionAspect callgraphMode;
Utils::StringListAspect events;
Utils::StringAspect extraArguments;
signals:
void changed();
};
} // namespace PerfProfiler
|