Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlprofilereventreceiver_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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// Qt-Security score:significant
4
5#ifndef QQMLPROFILEREVENTRECEIVER_P_H
6#define QQMLPROFILEREVENTRECEIVER_P_H
7
10
11#include <QtCore/qobject.h>
12
13//
14// W A R N I N G
15// -------------
16//
17// This file is not part of the Qt API. It exists purely as an
18// implementation detail. This header file may change from version to
19// version without notice, or even be removed.
20//
21// We mean it.
22//
23
24QT_BEGIN_NAMESPACE
25
26class QQmlProfilerEventReceiver : public QObject
27{
28 Q_OBJECT
29public:
30 explicit QQmlProfilerEventReceiver(QObject *parent = nullptr) : QObject(parent) {}
31 ~QQmlProfilerEventReceiver() override;
32
33 virtual int numLoadedEventTypes() const = 0;
34 virtual void addEventType(const QQmlProfilerEventType &type) = 0;
35 virtual void addEvent(const QQmlProfilerEvent &event) = 0;
36 virtual bool isEmpty() const = 0;
37
38 virtual void clear();
39 virtual bool save(const QString &filename);
40
41public Q_SLOTS:
42 virtual void startTrace(qint64 time, const QList<int> &engineIds);
43 virtual void endTrace(qint64 time, const QList<int> &engineIds);
44 virtual void complete(qint64 maximumTime);
45
46Q_SIGNALS:
47 void error(const QString &error);
48 void dataReady();
49
50protected:
51 QQmlProfilerEventReceiver(QObjectPrivate &dd, QObject *parent);
52};
53
55
56#endif // QQMLPROFILEREVENTRECEIVER_P_H
void setFlushInterval(quint32 flushInterval)
quint64 recordedFeatures() const
void traceFinished(qint64 timestamp, const QList< int > &engineIds)
void setRequestedFeatures(quint64 features)
void recordedFeaturesChanged(quint64 features)
void traceStarted(qint64 timestamp, const QList< int > &engineIds)
virtual void messageReceived(const QByteArray &) override
void recordingChanged(bool arg)
QQmlProfilerClient(QQmlProfilerClientPrivate &dd)
void onStateChanged(State status)
void sendRecordingStatus(int engineId=-1)
Combined button and popup list for selecting options.
QDataStream & operator<<(QDataStream &stream, const QQmlProfilerEventLocation &location)
size_t qHash(const QQmlProfilerEventLocation &location)
Q_DECLARE_TYPEINFO(QQmlProfilerEventLocation, Q_RELOCATABLE_TYPE)
bool operator!=(const QQmlProfilerEventLocation &location1, const QQmlProfilerEventLocation &location2)
bool operator==(const QQmlProfilerEventLocation &location1, const QQmlProfilerEventLocation &location2)
QDataStream & operator>>(QDataStream &stream, QQmlProfilerEventLocation &location)