aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler/perfprofilerconstants.h
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2018-10-18 11:57:19 +0200
committerAlessandro Portale <[email protected]>2018-12-18 17:26:45 +0000
commit75d070b9b88e3cbe2161c5d633c9188b3b171907 (patch)
treebd21567c92c22694586337325aa5e3bf203f18ec /src/plugins/perfprofiler/perfprofilerconstants.h
parent626d2e030d3cdda59de2a9c539a430c7739b61bf (diff)
Add PerfProfiler plugin
This moves the previously commercial PerfProfiler plugin into QtCreator. Task-number: QTCREATORBUG-21344 Change-Id: I41f4a9451c2fe8ff4e1108e07db2e72e8c613c43 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Alessandro Portale <[email protected]>
Diffstat (limited to 'src/plugins/perfprofiler/perfprofilerconstants.h')
-rw-r--r--src/plugins/perfprofiler/perfprofilerconstants.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/plugins/perfprofiler/perfprofilerconstants.h b/src/plugins/perfprofiler/perfprofilerconstants.h
new file mode 100644
index 00000000000..b35ba28ec86
--- /dev/null
+++ b/src/plugins/perfprofiler/perfprofilerconstants.h
@@ -0,0 +1,73 @@
+/****************************************************************************
+**
+** Copyright (C) 2018 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+****************************************************************************/
+
+#pragma once
+
+namespace PerfProfiler {
+namespace Constants {
+
+const char PerfOptionsMenuId[] = "Analyzer.Menu.PerfOptions";
+const char PerfProfilerTaskLoadPerf[] =
+ "Analyzer.Menu.StartAnalyzer.PerfProfilerOptions.LoadPerf";
+const char PerfProfilerTaskLoadTrace[] =
+ "Analyzer.Menu.StartAnalyzer.PerfProfilerOptions.LoadTrace";
+const char PerfProfilerTaskSaveTrace[] =
+ "Analyzer.Menu.StartAnalyzer.PerfProfilerOptions.SaveTrace";
+const char PerfProfilerTaskLimit[] =
+ "Analyzer.Menu.StartAnalyzer.PerfProfilerOptions.LimitToRange";
+const char PerfProfilerTaskFullRange[] =
+ "Analyzer.Menu.StartAnalyzer.PerfProfilerOptions.ShowFullRange";
+const char PerfProfilerTaskTracePoints[] =
+ "Analyzer.Menu.StartAnalyzer.PerfProfilerOptions.CreateTracePoints";
+
+const char PerfProfilerTaskSkipDelay[] = "Analyzer.Perf.SkipDelay";
+
+const char TraceFileExtension[] = ".data";
+
+const char PerfProfilerPerspectiveId[] = "PerfProfiler.Perspective";
+const char PerfProfilerLocalActionId[] = "PerfProfiler.Local";
+const char AnalyzerSettingsGroupId[] = "Analyzer";
+const char PerfSampleModeId[] = "Analyzer.Perf.SampleMode";
+const char PerfFrequencyId[] = "Analyzer.Perf.Frequency";
+const char PerfStackSizeId[] = "Analyzer.Perf.StackSize";
+const char PerfCallgraphModeId[] = "Analyzer.Perf.CallgraphMode";
+const char PerfEventsId[] = "Analyzer.Perf.Events";
+const char PerfExtraArgumentsId[] = "Analyzer.Perf.ExtraArguments";
+const char PerfSettingsId[] = "Analyzer.Perf.Settings";
+
+const unsigned int PerfDefaultPeriod = 250;
+const unsigned int PerfDefaultStackSize = 4096;
+const char PerfCallgraphDwarf[] = "dwarf";
+const char PerfCallgraphFP[] = "fp";
+const char PerfCallgraphLBR[] = "lbr";
+const char PerfSampleFrequency[] = "-F";
+const char PerfSampleCount[] = "-c";
+
+const char PerfStreamMagic[] = "QPERFSTREAM";
+const char PerfQzfileMagic[] = "QPERFQZFILE";
+const char PerfZqfileMagic[] = "QPERFZQFILE";
+
+} // namespace Constants
+} // namespace PerfProfiler