Classes | |
class | MTRScopedTrace |
class | MTRScopedTraceArg |
class | MTRScopedTraceLimit |
struct | raw_event |
Typedefs | |
typedef struct minitrace::raw_event | raw_event_t |
Enumerations | |
enum | mtr_arg_type { MTR_ARG_TYPE_NONE = 0, MTR_ARG_TYPE_INT = 1, MTR_ARG_TYPE_STRING_CONST = 8, MTR_ARG_TYPE_STRING_COPY = 9 } |
Functions | |
static int | get_cur_thread_id () |
void | internal_mtr_raw_event (const char *category, const char *name, char ph, void *id) |
void | internal_mtr_raw_event_arg (const char *category, const char *name, char ph, void *id, mtr_arg_type arg_type, const char *arg_name, void *arg_value) |
void | mtr_flush () |
void | mtr_init (const char *json_file) |
const char * | mtr_pool_string (const char *str) |
void | mtr_register_sigint_handler () |
void | mtr_shutdown () |
void | mtr_start () |
void | mtr_stop () |
int64_t | mtr_time_usec () |
static void | termination_handler (int) |
Variables | |
static raw_event_t * | buffer |
static volatile int | count |
static __thread int | cur_thread_id |
static FILE * | file |
static int | first_line = 1 |
static int | is_tracing = 0 |
static pthread_mutex_t | mutex |
static char * | str_pool [100] |
static int64_t | time_offset |
typedef struct minitrace::raw_event minitrace::raw_event_t |
Enumerator | |
---|---|
MTR_ARG_TYPE_NONE | |
MTR_ARG_TYPE_INT | |
MTR_ARG_TYPE_STRING_CONST | |
MTR_ARG_TYPE_STRING_COPY |
Definition at line 71 of file minitrace.h.
|
inlinestatic |
Definition at line 110 of file minitrace.cpp.
void minitrace::internal_mtr_raw_event | ( | const char * | category, |
const char * | name, | ||
char | ph, | ||
void * | id | ||
) |
Definition at line 303 of file minitrace.cpp.
void minitrace::internal_mtr_raw_event_arg | ( | const char * | category, |
const char * | name, | ||
char | ph, | ||
void * | id, | ||
mtr_arg_type | arg_type, | ||
const char * | arg_name, | ||
void * | arg_value | ||
) |
Definition at line 340 of file minitrace.cpp.
void minitrace::mtr_flush | ( | ) |
Definition at line 224 of file minitrace.cpp.
void minitrace::mtr_init | ( | const char * | json_file | ) |
Definition at line 158 of file minitrace.cpp.
const char * minitrace::mtr_pool_string | ( | const char * | str | ) |
Definition at line 194 of file minitrace.cpp.
void minitrace::mtr_register_sigint_handler | ( | ) |
Definition at line 147 of file minitrace.cpp.
void minitrace::mtr_shutdown | ( | ) |
Definition at line 173 of file minitrace.cpp.
void minitrace::mtr_start | ( | ) |
Definition at line 209 of file minitrace.cpp.
void minitrace::mtr_stop | ( | ) |
Definition at line 216 of file minitrace.cpp.
int64_t minitrace::mtr_time_usec | ( | ) |
Definition at line 125 of file minitrace.cpp.
|
static |
Definition at line 137 of file minitrace.cpp.
|
static |
Definition at line 54 of file minitrace.cpp.
|
static |
Definition at line 55 of file minitrace.cpp.
|
static |
Definition at line 60 of file minitrace.cpp.
|
static |
Definition at line 59 of file minitrace.cpp.
|
static |
Definition at line 58 of file minitrace.cpp.
|
static |
Definition at line 56 of file minitrace.cpp.
|
static |
Definition at line 61 of file minitrace.cpp.
|
static |
Definition at line 64 of file minitrace.cpp.
|
static |
Definition at line 57 of file minitrace.cpp.