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
qqmlprofilerclient_p.h
Go to the documentation of this file.
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// Qt-Security score:significant
4
5#ifndef QQMLPROFILERCLIENT_P_H
6#define QQMLPROFILERCLIENT_P_H
7
12
13#include <private/qpacket_p.h>
14
15//
16// W A R N I N G
17// -------------
18//
19// This file is not part of the Qt API. It exists purely as an
20// implementation detail. This header file may change from version to
21// version without notice, or even be removed.
22//
23// We mean it.
24//
25
27
29class QQmlProfilerClientPrivate;
31{
32 Q_OBJECT
33 Q_DECLARE_PRIVATE(QQmlProfilerClient)
35
36public:
40
41 bool isRecording() const;
42 void setRecording(bool);
44 virtual void messageReceived(const QByteArray &) override;
45
46 void clearEvents();
47 void clearAll();
48
49 void sendRecordingStatus(int engineId = -1);
50 void setRequestedFeatures(quint64 features);
51 void setFlushInterval(quint32 flushInterval);
52
53protected:
54 QQmlProfilerClient(QQmlProfilerClientPrivate &dd);
55 void onStateChanged(State status);
56
59 void traceFinished(qint64 timestamp, const QList<int> &engineIds);
60 void traceStarted(qint64 timestamp, const QList<int> &engineIds);
61
62 void recordingChanged(bool arg);
63 void recordedFeaturesChanged(quint64 features);
64
65 void cleared();
66
67private:
68 void receiveDebugMessage(
69 QtMsgType type, const QString &text, const QQmlDebugContextInfo &context);
70};
71
72QT_END_NAMESPACE
73
74#endif // QQMLPROFILERCLIENT_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.