aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/flamegraphview.h
blob: adca62c63375aa7cc4dbc728c51268ac7063af95 (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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "flamegraphmodel.h"
#include "qmlprofilereventsview.h"

#include <QWidget>
#include <QQuickWidget>

namespace QmlProfiler {
namespace Internal {

class FlameGraphView : public QmlProfilerEventsView
{
    Q_OBJECT
public:
    FlameGraphView(QmlProfilerModelManager *manager, QWidget *parent = nullptr);

    void selectByTypeId(int typeIndex) override;
    void onVisibleFeaturesChanged(quint64 features) override;

protected:
    void contextMenuEvent(QContextMenuEvent *ev) override;

private:
    QQuickWidget *m_content;
    FlameGraphModel *m_model;
};

} // namespace Internal
} // namespace QmlProfiler