Classes | Namespaces | Macros | Typedefs | Functions | Variables
minitrace.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <pthread.h>
#include <sys/time.h>
#include <unistd.h>
#include "minitrace.h"
Include dependency graph for minitrace.cpp:

Go to the source code of this file.

Classes

struct  minitrace::raw_event
 

Namespaces

 minitrace
 

Macros

#define ARRAY_SIZE(x)   sizeof(x)/sizeof(x[0])
 
#define STRING_POOL_SIZE   100
 

Typedefs

typedef struct minitrace::raw_event minitrace::raw_event_t
 

Functions

static int minitrace::get_cur_thread_id ()
 
void minitrace::internal_mtr_raw_event (const char *category, const char *name, char ph, void *id)
 
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)
 
void minitrace::mtr_flush ()
 
void minitrace::mtr_init (const char *json_file)
 
const char * minitrace::mtr_pool_string (const char *str)
 
void minitrace::mtr_register_sigint_handler ()
 
void minitrace::mtr_shutdown ()
 
void minitrace::mtr_start ()
 
void minitrace::mtr_stop ()
 
int64_t minitrace::mtr_time_usec ()
 
static void minitrace::termination_handler (int)
 

Variables

static raw_event_t * minitrace::buffer
 
static volatile int minitrace::count
 
static __thread int minitrace::cur_thread_id
 
static FILE * minitrace::file
 
static int minitrace::first_line = 1
 
static int minitrace::is_tracing = 0
 
static pthread_mutex_t minitrace::mutex
 
static char * minitrace::str_pool [100]
 
static int64_t minitrace::time_offset
 

Macro Definition Documentation

#define ARRAY_SIZE (   x)    sizeof(x)/sizeof(x[0])

Definition at line 31 of file minitrace.cpp.

#define STRING_POOL_SIZE   100

Definition at line 63 of file minitrace.cpp.



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