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
|
2016-05-31 17:32:39 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <qmlprofiler/flamegraphview.h>
|
|
|
|
|
#include <qmlprofiler/qmlprofilermodelmanager.h>
|
2018-03-28 15:40:13 +02:00
|
|
|
|
2018-05-03 09:50:11 +02:00
|
|
|
#include <tracing/timelinemodelaggregator.h>
|
2018-03-28 15:40:13 +02:00
|
|
|
|
2016-05-31 17:32:39 +02:00
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
|
|
namespace QmlProfiler {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class FlameGraphViewTest : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
FlameGraphViewTest(QObject *parent = nullptr);
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void initTestCase();
|
|
|
|
|
void testSelection();
|
|
|
|
|
void testContextMenu();
|
|
|
|
|
void cleanupTestCase();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QmlProfilerModelManager manager;
|
2018-03-28 15:40:13 +02:00
|
|
|
Timeline::TimelineModelAggregator aggregator;
|
2016-05-31 17:32:39 +02:00
|
|
|
FlameGraphView view;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QmlProfiler
|