Debian Codegraph @

src/LomiriMetrics/lttng/lttng.c

raw
1 // Copyright © 2016 Canonical Ltd.
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 #include "tracepoints_p.h"
20
21 static void logProcessEvent(UMLTTNGProcessEvent* event)
22 {
23 tracepoint(LomiriMetrics, process, event);
24 }
25
26 static void logFrameEvent(UMLTTNGFrameEvent* event)
27 {
28 tracepoint(LomiriMetrics, frame, event);
29 }
30
31 static void logWindowEvent(UMLTTNGWindowEvent* event)
32 {
33 tracepoint(LomiriMetrics, window, event);
34 }
35
36 static void logGenericEvent(UMLTTNGGenericEvent* event)
37 {
38 tracepoint(LomiriMetrics, generic, event);
39 }
40
41 const struct UMLTTNGPlugin umLttngPlugin = {
42 &logProcessEvent,
43 &logFrameEvent,
44 &logWindowEvent,
45 &logGenericEvent,
46 };