1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QQMLPROFILERADAPTER_H
16#define QQMLPROFILERADAPTER_H
17
18#include <private/qqmlabstractprofileradapter_p.h>
19#include <private/qqmlprofiler_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QQmlProfilerAdapter : public QQmlAbstractProfilerAdapter {
24 Q_OBJECT
25public:
26 QQmlProfilerAdapter(QQmlProfilerService *service, QQmlEnginePrivate *engine);
27 QQmlProfilerAdapter(QQmlProfilerService *service, QQmlTypeLoader *loader);
28 qint64 sendMessages(qint64 until, QList<QByteArray> &messages) override;
29
30 void receiveData(const QVector<QQmlProfilerData> &new_data,
31 const QQmlProfiler::LocationHash &locations);
32
33private:
34 void init(QQmlProfilerService *service, QQmlProfiler *profiler);
35 QVector<QQmlProfilerData> data;
36 QQmlProfiler::LocationHash locations;
37 int next;
38};
39
40QT_END_NAMESPACE
41
42#endif // QQMLPROFILERADAPTER_H
43

source code of qtdeclarative/src/plugins/qmltooling/qmldbg_profiler/qqmlprofileradapter.h