perfetto 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/README.md +55 -15
- data/Rakefile +8 -2
- data/example/example.png +0 -0
- data/example/example.rb +64 -0
- data/ext/perfetto/LICENSE +189 -0
- data/ext/perfetto/README.md +11 -0
- data/ext/perfetto/extconf.rb +11 -0
- data/ext/perfetto/perfetto.c +92 -0
- data/ext/perfetto/perfetto_internal.cc +149 -0
- data/ext/perfetto/perfetto_internal.h +36 -0
- data/ext/perfetto/sdk.cc +62532 -0
- data/ext/perfetto/sdk.h +154360 -0
- data/lib/perfetto/configure.rb +11 -0
- data/lib/perfetto/core_ext/configurable.rb +45 -0
- data/lib/perfetto/interceptor.rb +34 -0
- data/lib/perfetto/perfetto.rb +45 -0
- data/lib/perfetto/version.rb +1 -1
- data/lib/perfetto.rb +18 -2
- metadata +19 -3
@@ -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_
|