Debian Codegraph @

src/LomiriMetrics/lttng/lttng_p.h

raw symbols SCIP
1 // Copyright © 2016 Canonical Ltd.cxx . . $ `<file>/src/LomiriMetrics/lttng/lttng_p.h`/
2 // Authors: Loïc Molinari <[email protected]>
3 // Albert Astals Cid <[email protected]>
4 //
5 // This file is part of Lomiri UI Toolkit.
6 //
7 // Lomiri UI Toolkit is free software: you can redistribute it and/or modify it
8 // under the terms of the GNU Lesser General Public License as published by the
9 // Free Software Foundation; version 3.
10 //
11 // Lomiri UI Toolkit is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14 // for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with Lomiri UI Toolkit. If not, see <http://www.gnu.org/licenses/>.
18
19 #ifndef LTTNG_P_H
20 #define LTTNG_P_Hcxx . . $ `src/LomiriMetrics/lttng/lttng_p.h:20:9`!
21
22 #include <stdint.h>
23
24 typedef struct _UMLTTNGProcessEventcxx . . $ _UMLTTNGProcessEvent# UMLTTNGProcessEventcxx . . $ UMLTTNGProcessEvent#;
25 typedef struct _UMLTTNGFrameEventcxx . . $ _UMLTTNGFrameEvent# UMLTTNGFrameEventcxx . . $ UMLTTNGFrameEvent#;
26 typedef struct _UMLTTNGWindowEventcxx . . $ _UMLTTNGWindowEvent# UMLTTNGWindowEventcxx . . $ UMLTTNGWindowEvent#;
27 typedef struct _UMLTTNGGenericEventcxx . . $ _UMLTTNGGenericEvent# UMLTTNGGenericEventcxx . . $ UMLTTNGGenericEvent#;
28
29 struct UMLTTNGPlugincxx . . $ UMLTTNGPlugin# {
30 void (*logProcessEventcxx . . $ UMLTTNGPlugin#logProcessEvent.)(UMLTTNGProcessEventcxx . . $ UMLTTNGProcessEvent#*);
31 void (*logFrameEventcxx . . $ UMLTTNGPlugin#logFrameEvent.)(UMLTTNGFrameEventcxx . . $ UMLTTNGFrameEvent#*);
32 void (*logWindowEventcxx . . $ UMLTTNGPlugin#logWindowEvent.)(UMLTTNGWindowEventcxx . . $ UMLTTNGWindowEvent#*);
33 void (*logGenericEventcxx . . $ UMLTTNGPlugin#logGenericEvent.)(UMLTTNGGenericEventcxx . . $ UMLTTNGGenericEvent#*);
34 };
35
36 struct _UMLTTNGProcessEventcxx . . $ _UMLTTNGProcessEvent# {
37 uint32_tcxx . . $ uint32_t# vszMemorycxx . . $ _UMLTTNGProcessEvent#vszMemory.;
38 uint32_tcxx . . $ uint32_t# rssMemorycxx . . $ _UMLTTNGProcessEvent#rssMemory.;
39 uint16_tcxx . . $ uint16_t# cpuUsagecxx . . $ _UMLTTNGProcessEvent#cpuUsage.;
40 uint16_tcxx . . $ uint16_t# threadCountcxx . . $ _UMLTTNGProcessEvent#threadCount.;
41 };
42
43 struct _UMLTTNGFrameEventcxx . . $ _UMLTTNGFrameEvent# {
44 uint32_tcxx . . $ uint32_t# windowcxx . . $ _UMLTTNGFrameEvent#window.;
45 uint32_tcxx . . $ uint32_t# numbercxx . . $ _UMLTTNGFrameEvent#number.;
46 float deltaTimecxx . . $ _UMLTTNGFrameEvent#deltaTime.;
47 float syncTimecxx . . $ _UMLTTNGFrameEvent#syncTime.;
48 float renderTimecxx . . $ _UMLTTNGFrameEvent#renderTime.;
49 float gpuTimecxx . . $ _UMLTTNGFrameEvent#gpuTime.;
50 float swapTimecxx . . $ _UMLTTNGFrameEvent#swapTime.;
51 };
52
53 struct _UMLTTNGWindowEventcxx . . $ _UMLTTNGWindowEvent# {
54 const char* statecxx . . $ _UMLTTNGWindowEvent#state.;
55 uint32_tcxx . . $ uint32_t# idcxx . . $ _UMLTTNGWindowEvent#id.;
56 uint16_tcxx . . $ uint16_t# widthcxx . . $ _UMLTTNGWindowEvent#width.;
57 uint16_tcxx . . $ uint16_t# heightcxx . . $ _UMLTTNGWindowEvent#height.;
58 };
59
60 struct _UMLTTNGGenericEventcxx . . $ _UMLTTNGGenericEvent# {
61 uint32_tcxx . . $ uint32_t# idcxx . . $ _UMLTTNGGenericEvent#id.;
62 // Keep the size in sync with UMGenericEvent::maxStringSize. Unfortunately,
63 // a static assert is not possible here since it's C and we can't include
64 // the events.h C++ header.
65 char stringcxx . . $ _UMLTTNGGenericEvent#string.[64];
66 };
67
68 #endif // LTTNG_P_H