Classes | Typedefs | Enumerations | Functions | Variables
minitrace Namespace Reference

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_tbuffer
 
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 Documentation

Enumeration Type Documentation

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.

Function Documentation

static int minitrace::get_cur_thread_id ( )
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 void minitrace::termination_handler ( int  )
static

Definition at line 137 of file minitrace.cpp.

Variable Documentation

raw_event_t* minitrace::buffer
static

Definition at line 54 of file minitrace.cpp.

volatile int minitrace::count
static

Definition at line 55 of file minitrace.cpp.

__thread int minitrace::cur_thread_id
static

Definition at line 60 of file minitrace.cpp.

FILE* minitrace::file
static

Definition at line 59 of file minitrace.cpp.

int minitrace::first_line = 1
static

Definition at line 58 of file minitrace.cpp.

int minitrace::is_tracing = 0
static

Definition at line 56 of file minitrace.cpp.

pthread_mutex_t minitrace::mutex
static

Definition at line 61 of file minitrace.cpp.

char* minitrace::str_pool[100]
static

Definition at line 64 of file minitrace.cpp.

int64_t minitrace::time_offset
static

Definition at line 57 of file minitrace.cpp.



behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sun Feb 3 2019 03:14:33