forked from qt-creator/qt-creator
PerfProfiler: Remove warnings
Remove warnings about unused arguments and [this] lambda captures. Change-Id: Ic1ab0808008cf628a9114d4fcc7c38890f33d4dd Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
#include "perfprofilerflamegraphmodel.h"
|
#include "perfprofilerflamegraphmodel.h"
|
||||||
#include "perfprofilerflamegraphview.h"
|
#include "perfprofilerflamegraphview.h"
|
||||||
#include "perfprofilertool.h"
|
|
||||||
#include "perftimelinemodel.h"
|
|
||||||
|
|
||||||
#include <tracing/flamegraph.h>
|
#include <tracing/flamegraph.h>
|
||||||
#include <tracing/timelinetheme.h>
|
#include <tracing/timelinetheme.h>
|
||||||
@@ -16,8 +14,8 @@
|
|||||||
namespace PerfProfiler {
|
namespace PerfProfiler {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
PerfProfilerFlameGraphView::PerfProfilerFlameGraphView(QWidget *parent, PerfProfilerTool *tool) :
|
PerfProfilerFlameGraphView::PerfProfilerFlameGraphView(QWidget *parent)
|
||||||
QQuickWidget(parent)
|
: QQuickWidget(parent)
|
||||||
{
|
{
|
||||||
setObjectName(QLatin1String("PerfProfilerFlameGraphView"));
|
setObjectName(QLatin1String("PerfProfilerFlameGraphView"));
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class PerfProfilerFlameGraphView : public QQuickWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
PerfProfilerFlameGraphView(QWidget *parent, PerfProfilerTool *tool);
|
PerfProfilerFlameGraphView(QWidget *parent);
|
||||||
~PerfProfilerFlameGraphView();
|
~PerfProfilerFlameGraphView();
|
||||||
|
|
||||||
void selectByTypeId(int typeId);
|
void selectByTypeId(int typeId);
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include "perfprofilerstatisticsmodel.h"
|
#include "perfprofilerstatisticsmodel.h"
|
||||||
#include "perfprofilerstatisticsview.h"
|
#include "perfprofilerstatisticsview.h"
|
||||||
#include "perfprofilertool.h"
|
|
||||||
|
|
||||||
#include <coreplugin/minisplitter.h>
|
#include <coreplugin/minisplitter.h>
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "perftimelinemodel.h"
|
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
namespace PerfProfiler {
|
namespace PerfProfiler {
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ PerfProfilerTool::PerfProfilerTool()
|
|||||||
command = Core::ActionManager::registerAction(m_showFullRange,
|
command = Core::ActionManager::registerAction(m_showFullRange,
|
||||||
Constants::PerfProfilerTaskFullRange,
|
Constants::PerfProfilerTaskFullRange,
|
||||||
globalContext);
|
globalContext);
|
||||||
connect(m_showFullRange, &QAction::triggered, this, [this]() {
|
connect(m_showFullRange, &QAction::triggered, this, [] {
|
||||||
traceManager().restrictByFilter(traceManager().rangeAndThreadFilter(-1, -1));
|
traceManager().restrictByFilter(traceManager().rangeAndThreadFilter(-1, -1));
|
||||||
});
|
});
|
||||||
options->addAction(command);
|
options->addAction(command);
|
||||||
@@ -179,7 +179,7 @@ void PerfProfilerTool::createViews()
|
|||||||
m_statisticsView = new PerfProfilerStatisticsView;
|
m_statisticsView = new PerfProfilerStatisticsView;
|
||||||
m_statisticsView->setWindowTitle(Tr::tr("Statistics"));
|
m_statisticsView->setWindowTitle(Tr::tr("Statistics"));
|
||||||
|
|
||||||
m_flameGraphView = new PerfProfilerFlameGraphView(nullptr, this);
|
m_flameGraphView = new PerfProfilerFlameGraphView(nullptr);
|
||||||
m_flameGraphView->setWindowTitle(Tr::tr("Flame Graph"));
|
m_flameGraphView->setWindowTitle(Tr::tr("Flame Graph"));
|
||||||
|
|
||||||
connect(m_statisticsView, &PerfProfilerStatisticsView::gotoSourceLocation,
|
connect(m_statisticsView, &PerfProfilerStatisticsView::gotoSourceLocation,
|
||||||
@@ -500,7 +500,7 @@ void PerfProfilerTool::updateFilterMenu()
|
|||||||
if (thread.tid == 0) {
|
if (thread.tid == 0) {
|
||||||
action->setEnabled(false);
|
action->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
connect(action, &QAction::toggled, this, [this, action](bool checked) {
|
connect(action, &QAction::toggled, this, [action](bool checked) {
|
||||||
traceManager().setThreadEnabled(action->data().toUInt(), checked);
|
traceManager().setThreadEnabled(action->data().toUInt(), checked);
|
||||||
});
|
});
|
||||||
connect(enableAll, &QAction::triggered,
|
connect(enableAll, &QAction::triggered,
|
||||||
|
|||||||
Reference in New Issue
Block a user