2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 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
|
2011-08-03 16:41:12 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-08-03 16:41:12 +02:00
|
|
|
|
2016-12-20 13:00:18 +01:00
|
|
|
#include "qmlprofilerstatisticsview.h"
|
|
|
|
|
#include "qmlprofilertraceview.h"
|
2022-08-11 12:28:56 +03:00
|
|
|
#include "quick3dframeview.h"
|
2016-12-20 13:00:18 +01:00
|
|
|
#include "flamegraphview.h"
|
2017-06-27 16:14:24 +02:00
|
|
|
|
2018-08-01 17:33:41 +02:00
|
|
|
namespace Utils { class Perspective; }
|
|
|
|
|
|
2012-02-24 10:47:17 +01:00
|
|
|
namespace QmlProfiler {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class QmlProfilerViewManager : public QObject
|
2011-08-03 16:41:12 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-02-24 10:47:17 +01:00
|
|
|
|
2017-06-27 16:14:24 +02:00
|
|
|
public:
|
|
|
|
|
QmlProfilerViewManager(QObject *parent,
|
|
|
|
|
QmlProfilerModelManager *modelManager,
|
|
|
|
|
QmlProfilerStateManager *profilerState);
|
2018-11-24 12:14:44 +01:00
|
|
|
~QmlProfilerViewManager() override;
|
2011-08-03 16:41:12 +02:00
|
|
|
|
2017-06-27 16:14:24 +02:00
|
|
|
QmlProfilerTraceView *traceView() const { return m_traceView; }
|
|
|
|
|
QmlProfilerStatisticsView *statisticsView() const { return m_statisticsView; }
|
|
|
|
|
FlameGraphView *flameGraphView() const { return m_flameGraphView; }
|
2022-08-11 12:28:56 +03:00
|
|
|
Quick3DFrameView *quick3dView() const { return m_quick3dView; }
|
2018-08-01 17:33:41 +02:00
|
|
|
Utils::Perspective *perspective() const { return m_perspective; }
|
2015-05-08 14:30:30 +02:00
|
|
|
|
2012-02-24 10:47:17 +01:00
|
|
|
void clear();
|
2011-08-03 16:41:12 +02:00
|
|
|
|
|
|
|
|
signals:
|
2015-12-04 16:54:58 +01:00
|
|
|
void typeSelected(int typeId);
|
2012-02-24 10:47:17 +01:00
|
|
|
void gotoSourceLocation(QString,int,int);
|
2019-01-28 09:10:46 +01:00
|
|
|
void viewsCreated();
|
2011-08-03 16:41:12 +02:00
|
|
|
|
|
|
|
|
private:
|
2019-01-28 09:10:46 +01:00
|
|
|
void createViews();
|
|
|
|
|
|
2017-06-27 16:14:24 +02:00
|
|
|
QmlProfilerTraceView *m_traceView = nullptr;
|
|
|
|
|
QmlProfilerStatisticsView *m_statisticsView = nullptr;
|
|
|
|
|
FlameGraphView *m_flameGraphView = nullptr;
|
2022-08-11 12:28:56 +03:00
|
|
|
Quick3DFrameView *m_quick3dView = nullptr;
|
2017-06-27 16:14:24 +02:00
|
|
|
QmlProfilerStateManager *m_profilerState = nullptr;
|
|
|
|
|
QmlProfilerModelManager *m_profilerModelManager = nullptr;
|
2018-08-01 17:33:41 +02:00
|
|
|
Utils::Perspective *m_perspective = nullptr;
|
2011-08-03 16:41:12 +02:00
|
|
|
};
|
|
|
|
|
|
2012-02-24 10:47:17 +01:00
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QmlProfiler
|