2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2015-12-11 11:09:29 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2015-12-11 11:09:29 +01:00
|
|
|
|
|
|
|
|
#include "flamegraphmodel.h"
|
2016-04-26 10:21:00 +02:00
|
|
|
#include "qmlprofilereventsview.h"
|
2015-12-11 11:09:29 +01:00
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QQuickWidget>
|
|
|
|
|
|
2016-04-26 10:21:00 +02:00
|
|
|
namespace QmlProfiler {
|
2015-12-11 11:09:29 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2016-04-26 10:21:00 +02:00
|
|
|
class FlameGraphView : public QmlProfilerEventsView
|
2015-12-11 11:09:29 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2016-05-31 17:31:45 +02:00
|
|
|
FlameGraphView(QmlProfilerModelManager *manager, QWidget *parent = nullptr);
|
2015-12-11 11:09:29 +01:00
|
|
|
|
|
|
|
|
void selectByTypeId(int typeIndex) override;
|
|
|
|
|
void onVisibleFeaturesChanged(quint64 features) override;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void contextMenuEvent(QContextMenuEvent *ev) override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QQuickWidget *m_content;
|
|
|
|
|
FlameGraphModel *m_model;
|
|
|
|
|
};
|
|
|
|
|
|
2016-04-26 10:21:00 +02:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QmlProfiler
|