1 | #ifndef __GSK_PROFILER_PRIVATE_H__ |
2 | #define __GSK_PROFILER_PRIVATE_H__ |
3 | |
4 | #include <glib-object.h> |
5 | |
6 | G_BEGIN_DECLS |
7 | |
8 | #define GSK_TYPE_PROFILER (gsk_profiler_get_type ()) |
9 | G_DECLARE_FINAL_TYPE (GskProfiler, gsk_profiler, GSK, PROFILER, GObject) |
10 | |
11 | GskProfiler * gsk_profiler_new (void); |
12 | |
13 | GQuark gsk_profiler_add_counter (GskProfiler *profiler, |
14 | const char *counter_name, |
15 | const char *description, |
16 | gboolean can_reset); |
17 | GQuark gsk_profiler_add_timer (GskProfiler *profiler, |
18 | const char *timer_name, |
19 | const char *description, |
20 | gboolean invert, |
21 | gboolean can_reset); |
22 | |
23 | void gsk_profiler_counter_inc (GskProfiler *profiler, |
24 | GQuark counter_id); |
25 | void gsk_profiler_counter_add (GskProfiler *profiler, |
26 | GQuark counter_id, |
27 | gint64 increment); |
28 | void gsk_profiler_counter_set (GskProfiler *profiler, |
29 | GQuark counter_id, |
30 | gint64 value); |
31 | void gsk_profiler_timer_begin (GskProfiler *profiler, |
32 | GQuark timer_id); |
33 | gint64 gsk_profiler_timer_end (GskProfiler *profiler, |
34 | GQuark timer_id); |
35 | void gsk_profiler_timer_set (GskProfiler *profiler, |
36 | GQuark timer_id, |
37 | gint64 value); |
38 | |
39 | gint64 gsk_profiler_counter_get (GskProfiler *profiler, |
40 | GQuark counter_id); |
41 | gint64 gsk_profiler_timer_get (GskProfiler *profiler, |
42 | GQuark timer_id); |
43 | gint64 gsk_profiler_timer_get_start (GskProfiler *profiler, |
44 | GQuark timer_id); |
45 | |
46 | void gsk_profiler_reset (GskProfiler *profiler); |
47 | |
48 | void gsk_profiler_push_samples (GskProfiler *profiler); |
49 | void gsk_profiler_append_counters (GskProfiler *profiler, |
50 | GString *buffer); |
51 | void gsk_profiler_append_timers (GskProfiler *profiler, |
52 | GString *buffer); |
53 | |
54 | G_END_DECLS |
55 | |
56 | #endif /* __GSK_PROFILER_PRIVATE_H__ */ |
57 | |