perfetto 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,36 @@
1
+ #ifndef _RUBY_PERFETTO_INTERNAL_H_
2
+ #define _RUBY_PERFETTO_INTERNAL_H_
3
+
4
+ #ifdef __cplusplus
5
+ extern "C"
6
+ {
7
+ #endif
8
+
9
+ #include <stdint.h>
10
+ #include <string.h>
11
+ #include <stdlib.h>
12
+
13
+ /* C Interface */
14
+
15
+ bool perfetto_start_tracing(const uint32_t buffer_size_kb);
16
+
17
+ bool perfetto_stop_tracing(const char *const output_file);
18
+
19
+ void perfetto_trace_event_begin(const char *const category, const char *const name);
20
+
21
+ void perfetto_trace_event_end(const char *const category);
22
+
23
+ void perfetto_trace_counter_i64(const char *const category, const char *const name, const int64_t value);
24
+
25
+ void perfetto_trace_counter_double(const char *const category, const char *const name, const double value);
26
+
27
+ void perfetto_trace_event_instant(const char *const category, const char *const name);
28
+
29
+ void perfetto_trace_event_instant_with_debug_info(const char *const category, const char *const name, const char *const debug_info_key, const char *const debug_info_value);
30
+
31
+ void perfetto_trace_event_begin_with_debug_info(const char *const category, const char *const name, const char *const debug_info_key, const char *const debug_info_value);
32
+ #ifdef __cplusplus
33
+ }
34
+ #endif
35
+
36
+ #endif // _RUBY_PERFETTO_INTERNAL_H_