-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathperfetto_c.h
More file actions
34 lines (29 loc) · 994 Bytes
/
perfetto_c.h
File metadata and controls
34 lines (29 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __PERFETTO_C_H__
#define __PERFETTO_C_H__
#ifdef __cplusplus
extern "C" {
#endif
// args.backends |= perfetto::kInProcessBackend;
// args.backends |= perfetto::kSystemBackend;
// Make Enum for both backend
typedef enum {
PERFETTO_C_IN_PROCESS_BACKEND = 1,
PERFETTO_C_SYSTEAM_BACKEND = 2
} perfetto_backend_t;
void perfetto_c_init(perfetto_backend_t backend);
void perfetto_c_trace_event(char *name);
void perfetto_c_trace_event_begin(char *name);
void perfetto_c_trace_event_end(void);
void perfetto_c_trace_thread_begin(char* thread_name, char *name);
void perfetto_c_trace_thread_end(char* thread_name);
void perfetto_c_log(char *msg);
void perfetto_c_event_instant(const char *name);
void perfetto_c_event_counter(const char *name, int value);
void perfetto_c_start_tracing(void);
void perfetto_c_stop_tracing(void);
void perfetto_c_set_current_thread_name(const char *name);
void perfetto_c_register_process(const char *name);
#ifdef __cplusplus
}
#endif
#endif