Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qqmlprofilerclient_p_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_P_H
6
#
define
QQMLPROFILERCLIENT_P_P_H
7
8
#
include
"qqmldebugclient_p_p.h"
9
#
include
"qqmldebugmessageclient_p.h"
10
#
include
"qqmlenginecontrolclient_p.h"
11
#
include
"qqmlprofilerclient_p.h"
12
#
include
"qqmlprofilertypedevent_p.h"
13
#
include
"qqmlprofilerclientdefinitions_p.h"
14
15
#
include
<
QtCore
/
qqueue
.
h
>
16
#
include
<
QtCore
/
qstack
.
h
>
17
18
//
19
// W A R N I N G
20
// -------------
21
//
22
// This file is not part of the Qt API. It exists purely as an
23
// implementation detail. This header file may change from version to
24
// version without notice, or even be removed.
25
//
26
// We mean it.
27
//
28
29
QT_BEGIN_NAMESPACE
30
31
class
QQmlProfilerClientPrivate :
public
QQmlDebugClientPrivate {
32
Q_DECLARE_PUBLIC(QQmlProfilerClient)
33
public
:
34
QQmlProfilerClientPrivate(QQmlDebugConnection *connection,
35
QQmlProfilerEventReceiver *eventReceiver)
36
: QQmlDebugClientPrivate(QLatin1String(
"CanvasFrameRate"
), connection)
37
, eventReceiver(eventReceiver)
38
, engineControl(
new
QQmlEngineControlClient(connection))
39
, messageClient(
new
QQmlDebugMessageClient(connection))
40
, maximumTime(0)
41
, recording(
false
)
42
, requestedFeatures(0)
43
, recordedFeatures(0)
44
, flushInterval(0)
45
{
46
}
47
48
~QQmlProfilerClientPrivate() override;
49
50
void
sendRecordingStatus(
int
engineId);
51
bool
updateFeatures(ProfileFeature feature);
52
int
resolveType(
const
QQmlProfilerTypedEvent &type);
53
int
resolveStackTop();
54
void
forwardEvents(
const
QQmlProfilerEvent &last);
55
void
forwardDebugMessages(qint64 untilTimestamp);
56
void
processCurrentEvent();
57
void
finalize();
58
59
QQmlProfilerEventReceiver *eventReceiver;
60
QScopedPointer<QQmlEngineControlClient> engineControl;
61
QScopedPointer<QQmlDebugMessageClient> messageClient;
62
qint64 maximumTime;
63
bool
recording;
64
quint64 requestedFeatures;
65
quint64 recordedFeatures;
66
quint32 flushInterval;
67
68
// Reuse the same event, so that we don't have to constantly reallocate all the data.
69
QQmlProfilerTypedEvent currentEvent;
70
QHash<QQmlProfilerEventType,
int
> eventTypeIds;
71
QHash<qint64,
int
> serverTypeIds;
72
QStack<QQmlProfilerTypedEvent> rangesInProgress;
73
QQueue<QQmlProfilerEvent> pendingMessages;
74
QQueue<QQmlProfilerEvent> pendingDebugMessages;
75
76
QList<
int
> trackedEngines;
77
};
78
79
QT_END_NAMESPACE
80
81
#
endif
// QQMLPROFILERCLIENT_P_P_H
QQmlDebugClient
Definition
qqmldebugclient_p.h:27
QQmlDebugConnection
Definition
qqmldebugconnection_p.h:28
QQmlProfilerClient
Definition
qqmlprofilerclient_p.h:31
QQmlProfilerClient::setFlushInterval
void setFlushInterval(quint32 flushInterval)
Definition
qqmlprofilerclient.cpp:271
QQmlProfilerClient::recordedFeatures
quint64 recordedFeatures() const
Definition
qqmlprofilerclient.cpp:231
QQmlProfilerClient::isRecording
bool isRecording() const
Definition
qqmlprofilerclient.cpp:211
QQmlProfilerClient::setRequestedFeatures
void setRequestedFeatures(quint64 features)
Definition
qqmlprofilerclient.cpp:252
QQmlProfilerClient::clearEvents
void clearEvents()
Definition
qqmlprofilerclient.cpp:171
QQmlProfilerClient::clearAll
void clearAll()
Definition
qqmlprofilerclient.cpp:184
QQmlProfilerClient::messageReceived
virtual void messageReceived(const QByteArray &) override
Definition
qqmlprofilerclient.cpp:309
QQmlProfilerClient::QQmlProfilerClient
QQmlProfilerClient(QQmlProfilerClientPrivate &dd)
Definition
qqmlprofilerclient.cpp:277
QQmlProfilerClient::setRecording
void setRecording(bool)
Definition
qqmlprofilerclient.cpp:217
QQmlProfilerClient::onStateChanged
void onStateChanged(State status)
Definition
qqmlprofilerclient.cpp:298
QQmlProfilerClient::sendRecordingStatus
void sendRecordingStatus(int engineId=-1)
Definition
qqmlprofilerclient.cpp:205
QQmlProfilerClient::~QQmlProfilerClient
~QQmlProfilerClient()
Definition
qqmlprofilerclient.cpp:163
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
ProfileDebugMessages
@ ProfileDebugMessages
Definition
qqmlprofilerclientdefinitions_p.h:123
QQmlDebugContextInfo
Definition
qqmldebugmessageclient_p.h:24
qtdeclarative
src
qmldebug
qqmlprofilerclient_p_p.h
Generated on
for Qt by
1.18.0