Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmlprofilereventtype.cpp
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
6
7#include <QtCore/qdatastream.h>
8
10
12{
14 quint8 rangeType;
15 stream >> type.m_displayName >> type.m_data >> type.m_location >> message >> rangeType
16 >> type.m_detailType;
17 type.m_message = static_cast<Message>(message);
18 type.m_rangeType = static_cast<RangeType>(rangeType);
19 return stream;
20}
21
23{
24 return stream << type.m_displayName << type.m_data << type.m_location
25 << static_cast<quint8>(type.m_message) << static_cast<quint8>(type.m_rangeType)
26 << type.m_detailType;
27}
28
30{
31 switch (m_message) {
32 case Event: {
33 switch (m_detailType) {
34 case Mouse:
35 case Key:
36 return ProfileInputEvents;
37 case AnimationFrame:
38 return ProfileAnimations;
39 default:
41 }
42 }
44 return ProfilePixmapCache;
45 case SceneGraphFrame:
46 return ProfileSceneGraph;
48 return ProfileMemory;
49 case DebugMessage:
51 default:
52 break;
53 }
54
55 switch (m_rangeType) {
56 case Painting:
57 return ProfilePainting;
58 case Compiling:
59 return ProfileCompiling;
60 case Creating:
61 return ProfileCreating;
62 case Binding:
63 return ProfileBinding;
64 case HandlingSignal:
66 case Javascript:
67 return ProfileJavaScript;
68 default:
70 }
71}
72
73
[custom type definition]
\inmodule QtCore\reentrant
Definition qdatastream.h:46
ProfileFeature feature() const
Combined button and popup list for selecting options.
EGLStreamKHR stream
GLenum type
GLuint GLsizei const GLchar * message
QDataStream & operator<<(QDataStream &stream, const QQmlProfilerEventType &type)
QT_BEGIN_NAMESPACE QDataStream & operator>>(QDataStream &stream, QQmlProfilerEventType &type)
unsigned char quint8
Definition qtypes.h:46