2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2018 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
|
2018-10-18 11:57:19 +02:00
|
|
|
|
2020-01-27 11:39:22 +01:00
|
|
|
#include "perfconfigwidget.h"
|
2022-08-30 17:28:02 +02:00
|
|
|
#include "perfoptionspage.h"
|
2018-10-18 11:57:19 +02:00
|
|
|
#include "perfprofilerconstants.h"
|
2022-08-30 17:28:02 +02:00
|
|
|
#include "perfprofilertr.h"
|
2018-10-18 11:57:19 +02:00
|
|
|
|
|
|
|
|
#include <debugger/analyzer/analyzericons.h>
|
2023-02-09 11:43:49 +01:00
|
|
|
#include <debugger/debuggertr.h>
|
2018-10-18 11:57:19 +02:00
|
|
|
|
|
|
|
|
namespace PerfProfiler {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2020-01-27 11:39:22 +01:00
|
|
|
PerfOptionsPage::PerfOptionsPage(PerfSettings *settings)
|
2018-10-18 11:57:19 +02:00
|
|
|
{
|
|
|
|
|
setId(Constants::PerfSettingsId);
|
2022-08-30 17:28:02 +02:00
|
|
|
setDisplayName(Tr::tr("CPU Usage"));
|
2018-10-18 11:57:19 +02:00
|
|
|
setCategory("T.Analyzer");
|
2023-02-09 11:43:49 +01:00
|
|
|
setDisplayCategory(::Debugger::Tr::tr("Analyzer"));
|
2020-01-10 09:33:24 +01:00
|
|
|
setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
|
2020-01-27 11:39:22 +01:00
|
|
|
setWidgetCreator([settings] { return new PerfConfigWidget(settings); });
|
2018-10-18 11:57:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace PerfProfiler
|