blob: 237788eeb53a36831c1f5291386bdaed02b0e893 (
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
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "perfprofiler_global.h"
#include <projectexplorer/runconfiguration.h>
namespace PerfProfiler {
class PERFPROFILER_EXPORT PerfSettings final : public Utils::AspectContainer
{
Q_OBJECT
public:
explicit PerfSettings(ProjectExplorer::Target *target = nullptr);
~PerfSettings() final;
void readGlobalSettings();
void writeGlobalSettings() const;
void toMap(Utils::Store &map) const override;
QString perfRecordArguments() const;
QWidget *createPerfConfigWidget(ProjectExplorer::Target *target);
Utils::IntegerAspect period{this};
Utils::IntegerAspect stackSize{this};
Utils::SelectionAspect sampleMode{this};
Utils::SelectionAspect callgraphMode{this};
Utils::StringListAspect events{this};
Utils::StringAspect extraArguments{this};
};
PerfSettings &globalSettings();
} // namespace PerfProfiler
|