1 | // Copyright (C) 2018 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 | #ifndef QQMLPROFILERCLIENTDEFINITIONS_P_H |
5 | #define QQMLPROFILERCLIENTDEFINITIONS_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtCore/private/qglobal_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | enum Message { |
23 | Event, |
24 | RangeStart, |
25 | RangeData, |
26 | RangeLocation, |
27 | RangeEnd, |
28 | Complete, // end of transmission |
29 | PixmapCacheEvent, |
30 | SceneGraphFrame, |
31 | MemoryAllocation, |
32 | DebugMessage, |
33 | |
34 | MaximumMessage |
35 | }; |
36 | |
37 | enum EventType { |
38 | FramePaint, |
39 | Mouse, |
40 | Key, |
41 | AnimationFrame, |
42 | EndTrace, |
43 | StartTrace, |
44 | |
45 | MaximumEventType |
46 | }; |
47 | |
48 | enum RangeType { |
49 | Painting, |
50 | Compiling, |
51 | Creating, |
52 | Binding, //running a binding |
53 | HandlingSignal, //running a signal handler |
54 | Javascript, |
55 | |
56 | MaximumRangeType |
57 | }; |
58 | |
59 | enum PixmapEventType { |
60 | PixmapSizeKnown, |
61 | PixmapReferenceCountChanged, |
62 | PixmapCacheCountChanged, |
63 | PixmapLoadingStarted, |
64 | PixmapLoadingFinished, |
65 | PixmapLoadingError, |
66 | |
67 | MaximumPixmapEventType |
68 | }; |
69 | |
70 | enum SceneGraphFrameType { |
71 | SceneGraphRendererFrame, // Render Thread |
72 | SceneGraphAdaptationLayerFrame, // Render Thread |
73 | SceneGraphContextFrame, // Render Thread |
74 | SceneGraphRenderLoopFrame, // Render Thread |
75 | SceneGraphTexturePrepare, // Render Thread |
76 | SceneGraphTextureDeletion, // Render Thread |
77 | SceneGraphPolishAndSync, // GUI Thread |
78 | SceneGraphWindowsRenderShow, // Unused |
79 | SceneGraphWindowsAnimations, // GUI Thread |
80 | SceneGraphPolishFrame, // GUI Thread |
81 | |
82 | MaximumSceneGraphFrameType, |
83 | NumRenderThreadFrameTypes = SceneGraphPolishAndSync, |
84 | NumGUIThreadFrameTypes = MaximumSceneGraphFrameType - NumRenderThreadFrameTypes |
85 | }; |
86 | |
87 | enum MemoryType { |
88 | HeapPage, |
89 | LargeItem, |
90 | SmallItem |
91 | }; |
92 | |
93 | enum ProfileFeature { |
94 | ProfileJavaScript, |
95 | ProfileMemory, |
96 | ProfilePixmapCache, |
97 | ProfileSceneGraph, |
98 | ProfileAnimations, |
99 | ProfilePainting, |
100 | ProfileCompiling, |
101 | ProfileCreating, |
102 | ProfileBinding, |
103 | ProfileHandlingSignal, |
104 | ProfileInputEvents, |
105 | ProfileDebugMessages, |
106 | |
107 | MaximumProfileFeature |
108 | }; |
109 | |
110 | enum InputEventType { |
111 | InputKeyPress, |
112 | InputKeyRelease, |
113 | InputKeyUnknown, |
114 | |
115 | InputMousePress, |
116 | InputMouseRelease, |
117 | InputMouseMove, |
118 | InputMouseDoubleClick, |
119 | InputMouseWheel, |
120 | InputMouseUnknown, |
121 | |
122 | MaximumInputEventType |
123 | }; |
124 | |
125 | QT_END_NAMESPACE |
126 | |
127 | #endif // QQMLPROFILERCLIENTDEFINITIONS_P_H |
128 | |