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

source code of gtk/gsk/gskprofilerprivate.h