1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2018 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the QtQml module of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:LGPL$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU Lesser General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
21 | ** packaging of this file. Please review the following information to |
22 | ** ensure the GNU Lesser General Public License version 3 requirements |
23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
24 | ** |
25 | ** GNU General Public License Usage |
26 | ** Alternatively, this file may be used under the terms of the GNU |
27 | ** General Public License version 2.0 or (at your option) the GNU General |
28 | ** Public license version 3 or any later version approved by the KDE Free |
29 | ** Qt Foundation. The licenses are as published by the Free Software |
30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
31 | ** included in the packaging of this file. Please review the following |
32 | ** information to ensure the GNU General Public License requirements will |
33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
34 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
35 | ** |
36 | ** $QT_END_LICENSE$ |
37 | ** |
38 | ****************************************************************************/ |
39 | |
40 | #ifndef QQMLPROFILERCLIENTDEFINITIONS_P_H |
41 | #define QQMLPROFILERCLIENTDEFINITIONS_P_H |
42 | |
43 | // |
44 | // W A R N I N G |
45 | // ------------- |
46 | // |
47 | // This file is not part of the Qt API. It exists purely as an |
48 | // implementation detail. This header file may change from version to |
49 | // version without notice, or even be removed. |
50 | // |
51 | // We mean it. |
52 | // |
53 | |
54 | #include <QtCore/qglobal.h> |
55 | |
56 | QT_BEGIN_NAMESPACE |
57 | |
58 | enum Message { |
59 | Event, |
60 | RangeStart, |
61 | RangeData, |
62 | RangeLocation, |
63 | RangeEnd, |
64 | Complete, // end of transmission |
65 | PixmapCacheEvent, |
66 | SceneGraphFrame, |
67 | MemoryAllocation, |
68 | DebugMessage, |
69 | |
70 | MaximumMessage |
71 | }; |
72 | |
73 | enum EventType { |
74 | FramePaint, |
75 | Mouse, |
76 | Key, |
77 | AnimationFrame, |
78 | EndTrace, |
79 | StartTrace, |
80 | |
81 | MaximumEventType |
82 | }; |
83 | |
84 | enum RangeType { |
85 | Painting, |
86 | Compiling, |
87 | Creating, |
88 | Binding, //running a binding |
89 | HandlingSignal, //running a signal handler |
90 | Javascript, |
91 | |
92 | MaximumRangeType |
93 | }; |
94 | |
95 | enum PixmapEventType { |
96 | PixmapSizeKnown, |
97 | PixmapReferenceCountChanged, |
98 | PixmapCacheCountChanged, |
99 | PixmapLoadingStarted, |
100 | PixmapLoadingFinished, |
101 | PixmapLoadingError, |
102 | |
103 | MaximumPixmapEventType |
104 | }; |
105 | |
106 | enum SceneGraphFrameType { |
107 | SceneGraphRendererFrame, // Render Thread |
108 | SceneGraphAdaptationLayerFrame, // Render Thread |
109 | SceneGraphContextFrame, // Render Thread |
110 | SceneGraphRenderLoopFrame, // Render Thread |
111 | SceneGraphTexturePrepare, // Render Thread |
112 | SceneGraphTextureDeletion, // Render Thread |
113 | SceneGraphPolishAndSync, // GUI Thread |
114 | SceneGraphWindowsRenderShow, // Unused |
115 | SceneGraphWindowsAnimations, // GUI Thread |
116 | SceneGraphPolishFrame, // GUI Thread |
117 | |
118 | MaximumSceneGraphFrameType, |
119 | NumRenderThreadFrameTypes = SceneGraphPolishAndSync, |
120 | NumGUIThreadFrameTypes = MaximumSceneGraphFrameType - NumRenderThreadFrameTypes |
121 | }; |
122 | |
123 | enum MemoryType { |
124 | HeapPage, |
125 | LargeItem, |
126 | SmallItem |
127 | }; |
128 | |
129 | enum ProfileFeature { |
130 | ProfileJavaScript, |
131 | ProfileMemory, |
132 | ProfilePixmapCache, |
133 | ProfileSceneGraph, |
134 | ProfileAnimations, |
135 | ProfilePainting, |
136 | ProfileCompiling, |
137 | ProfileCreating, |
138 | ProfileBinding, |
139 | ProfileHandlingSignal, |
140 | ProfileInputEvents, |
141 | ProfileDebugMessages, |
142 | |
143 | MaximumProfileFeature |
144 | }; |
145 | |
146 | enum InputEventType { |
147 | InputKeyPress, |
148 | InputKeyRelease, |
149 | InputKeyUnknown, |
150 | |
151 | InputMousePress, |
152 | InputMouseRelease, |
153 | InputMouseMove, |
154 | InputMouseDoubleClick, |
155 | InputMouseWheel, |
156 | InputMouseUnknown, |
157 | |
158 | MaximumInputEventType |
159 | }; |
160 | |
161 | QT_END_NAMESPACE |
162 | |
163 | #endif // QQMLPROFILERCLIENTDEFINITIONS_P_H |
164 | |