Macros | Enumerations | Functions
minitrace.h File Reference
#include <inttypes.h>
Include dependency graph for minitrace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INTERNAL_MINITRACE_BUFFER_SIZE   1000000
 
#define MINITRACE_EXPORT
 
#define MTR_BEGIN(c, n)
 
#define MTR_BEGIN_C(c, n, aname, astrval)
 
#define MTR_BEGIN_FUNC()   MTR_BEGIN(__FILE__, __FUNCTION__)
 
#define MTR_BEGIN_FUNC_C(aname, arg)   MTR_BEGIN_C(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_BEGIN_FUNC_I(aname, arg)   MTR_BEGIN_I(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_BEGIN_FUNC_S(aname, arg)   MTR_BEGIN_S(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_BEGIN_I(c, n, aname, aintval)
 
#define MTR_BEGIN_S(c, n, aname, astrval)
 
#define MTR_COUNTER(c, n, val)
 
#define MTR_END(c, n)
 
#define MTR_END_C(c, n, aname, astrval)
 
#define MTR_END_FUNC()   MTR_END(__FILE__, __FUNCTION__)
 
#define MTR_END_FUNC_C(aname, arg)   MTR_END_C(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_END_FUNC_I(aname, arg)   MTR_END_I(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_END_FUNC_S(aname, arg)   MTR_END_S(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_END_I(c, n, aname, aintval)
 
#define MTR_END_S(c, n, aname, astrval)
 
#define MTR_FINISH(c, n, id)
 
#define MTR_FLOW_FINISH(c, n, id)
 
#define MTR_FLOW_START(c, n, id)
 
#define MTR_FLOW_STEP(c, n, id, step)
 
#define MTR_INSTANT(c, n)
 
#define MTR_INSTANT(c, n)
 
#define MTR_INSTANT_C(c, n, aname, astrval)
 
#define MTR_INSTANT_FUNC()   MTR_INSTANT(__FILE__, __FUNCTION__)
 
#define MTR_INSTANT_I(c, n, aname, aintval)
 
#define MTR_MAX_ARGS   1
 
#define MTR_META_PROCESS_NAME(n)
 
#define MTR_META_THREAD_NAME(n)
 
#define MTR_META_THREAD_SORT_INDEX(i)
 
#define MTR_SCOPE(c, n)
 
#define MTR_SCOPE_C(c, n, aname, astrval)
 
#define MTR_SCOPE_FUNC()   MTR_SCOPE(__FILE__, __FUNCTION__)
 
#define MTR_SCOPE_FUNC_C(aname, arg)   MTR_SCOPE_C(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_SCOPE_FUNC_I(aname, arg)   MTR_SCOPE_I(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_SCOPE_FUNC_LIMIT_MS(l)   MTRScopedTraceLimit ____mtr_scope(__FILE__, __FUNCTION__, (double)l * 0.000001)
 
#define MTR_SCOPE_FUNC_LIMIT_S(l)   MTRScopedTraceLimit ____mtr_scope(__FILE__, __FUNCTION__, l)
 
#define MTR_SCOPE_FUNC_S(aname, arg)   MTR_SCOPE_S(__FILE__, __FUNCTION__, aname, arg)
 
#define MTR_SCOPE_I(c, n, aname, aintval)
 
#define MTR_SCOPE_S(c, n, aname, astrval)
 
#define MTR_START(c, n, id)
 
#define MTR_STEP(c, n, id, step)
 

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

MINITRACE_EXPORT void internal_mtr_raw_event (const char *category, const char *name, char ph, void *id)
 
MINITRACE_EXPORT 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)
 
MINITRACE_EXPORT void mtr_flush (void)
 
MINITRACE_EXPORT void mtr_init (const char *json_file)
 
MINITRACE_EXPORT void mtr_init_from_stream (void *stream)
 
const MINITRACE_EXPORT char * mtr_pool_string (const char *str)
 
MINITRACE_EXPORT void mtr_register_sigint_handler (void)
 
MINITRACE_EXPORT void mtr_shutdown (void)
 
MINITRACE_EXPORT void mtr_start (void)
 
MINITRACE_EXPORT void mtr_stop (void)
 
MINITRACE_EXPORT double mtr_time_s (void)
 

Macro Definition Documentation

◆ INTERNAL_MINITRACE_BUFFER_SIZE

#define INTERNAL_MINITRACE_BUFFER_SIZE   1000000

Definition at line 39 of file minitrace.h.

◆ MINITRACE_EXPORT

#define MINITRACE_EXPORT

Definition at line 29 of file minitrace.h.

◆ MTR_BEGIN

#define MTR_BEGIN (   c,
 
)

Definition at line 154 of file minitrace.h.

◆ MTR_BEGIN_C

#define MTR_BEGIN_C (   c,
  n,
  aname,
  astrval 
)

Definition at line 165 of file minitrace.h.

◆ MTR_BEGIN_FUNC

#define MTR_BEGIN_FUNC ( )    MTR_BEGIN(__FILE__, __FUNCTION__)

Definition at line 195 of file minitrace.h.

◆ MTR_BEGIN_FUNC_C

#define MTR_BEGIN_FUNC_C (   aname,
  arg 
)    MTR_BEGIN_C(__FILE__, __FUNCTION__, aname, arg)

Definition at line 207 of file minitrace.h.

◆ MTR_BEGIN_FUNC_I

#define MTR_BEGIN_FUNC_I (   aname,
  arg 
)    MTR_BEGIN_I(__FILE__, __FUNCTION__, aname, arg)

Definition at line 211 of file minitrace.h.

◆ MTR_BEGIN_FUNC_S

#define MTR_BEGIN_FUNC_S (   aname,
  arg 
)    MTR_BEGIN_S(__FILE__, __FUNCTION__, aname, arg)

Definition at line 203 of file minitrace.h.

◆ MTR_BEGIN_I

#define MTR_BEGIN_I (   c,
  n,
  aname,
  aintval 
)

Definition at line 173 of file minitrace.h.

◆ MTR_BEGIN_S

#define MTR_BEGIN_S (   c,
  n,
  aname,
  astrval 
)

Definition at line 169 of file minitrace.h.

◆ MTR_COUNTER

#define MTR_COUNTER (   c,
  n,
  val 
)

Definition at line 182 of file minitrace.h.

◆ MTR_END

#define MTR_END (   c,
 
)

Definition at line 155 of file minitrace.h.

◆ MTR_END_C

#define MTR_END_C (   c,
  n,
  aname,
  astrval 
)

Definition at line 166 of file minitrace.h.

◆ MTR_END_FUNC

#define MTR_END_FUNC ( )    MTR_END(__FILE__, __FUNCTION__)

Definition at line 196 of file minitrace.h.

◆ MTR_END_FUNC_C

#define MTR_END_FUNC_C (   aname,
  arg 
)    MTR_END_C(__FILE__, __FUNCTION__, aname, arg)

Definition at line 208 of file minitrace.h.

◆ MTR_END_FUNC_I

#define MTR_END_FUNC_I (   aname,
  arg 
)    MTR_END_I(__FILE__, __FUNCTION__, aname, arg)

Definition at line 212 of file minitrace.h.

◆ MTR_END_FUNC_S

#define MTR_END_FUNC_S (   aname,
  arg 
)    MTR_END_S(__FILE__, __FUNCTION__, aname, arg)

Definition at line 204 of file minitrace.h.

◆ MTR_END_I

#define MTR_END_I (   c,
  n,
  aname,
  aintval 
)

Definition at line 174 of file minitrace.h.

◆ MTR_END_S

#define MTR_END_S (   c,
  n,
  aname,
  astrval 
)

Definition at line 170 of file minitrace.h.

◆ MTR_FINISH

#define MTR_FINISH (   c,
  n,
  id 
)

Definition at line 159 of file minitrace.h.

◆ MTR_FLOW_FINISH

#define MTR_FLOW_FINISH (   c,
  n,
  id 
)

Definition at line 162 of file minitrace.h.

◆ MTR_FLOW_START

#define MTR_FLOW_START (   c,
  n,
  id 
)

Definition at line 160 of file minitrace.h.

◆ MTR_FLOW_STEP

#define MTR_FLOW_STEP (   c,
  n,
  id,
  step 
)

Definition at line 161 of file minitrace.h.

◆ MTR_INSTANT [1/2]

#define MTR_INSTANT (   c,
 
)

Definition at line 177 of file minitrace.h.

◆ MTR_INSTANT [2/2]

#define MTR_INSTANT (   c,
 
)

Definition at line 177 of file minitrace.h.

◆ MTR_INSTANT_C

#define MTR_INSTANT_C (   c,
  n,
  aname,
  astrval 
)

Definition at line 178 of file minitrace.h.

◆ MTR_INSTANT_FUNC

#define MTR_INSTANT_FUNC ( )    MTR_INSTANT(__FILE__, __FUNCTION__)

Definition at line 198 of file minitrace.h.

◆ MTR_INSTANT_I

#define MTR_INSTANT_I (   c,
  n,
  aname,
  aintval 
)

Definition at line 179 of file minitrace.h.

◆ MTR_MAX_ARGS

#define MTR_MAX_ARGS   1

Definition at line 91 of file minitrace.h.

◆ MTR_META_PROCESS_NAME

#define MTR_META_PROCESS_NAME (   n)

Definition at line 186 of file minitrace.h.

◆ MTR_META_THREAD_NAME

#define MTR_META_THREAD_NAME (   n)

Definition at line 188 of file minitrace.h.

◆ MTR_META_THREAD_SORT_INDEX

#define MTR_META_THREAD_SORT_INDEX (   i)

Definition at line 189 of file minitrace.h.

◆ MTR_SCOPE

#define MTR_SCOPE (   c,
 
)

Definition at line 156 of file minitrace.h.

◆ MTR_SCOPE_C

#define MTR_SCOPE_C (   c,
  n,
  aname,
  astrval 
)

Definition at line 167 of file minitrace.h.

◆ MTR_SCOPE_FUNC

#define MTR_SCOPE_FUNC ( )    MTR_SCOPE(__FILE__, __FUNCTION__)

Definition at line 197 of file minitrace.h.

◆ MTR_SCOPE_FUNC_C

#define MTR_SCOPE_FUNC_C (   aname,
  arg 
)    MTR_SCOPE_C(__FILE__, __FUNCTION__, aname, arg)

Definition at line 209 of file minitrace.h.

◆ MTR_SCOPE_FUNC_I

#define MTR_SCOPE_FUNC_I (   aname,
  arg 
)    MTR_SCOPE_I(__FILE__, __FUNCTION__, aname, arg)

Definition at line 213 of file minitrace.h.

◆ MTR_SCOPE_FUNC_LIMIT_MS

#define MTR_SCOPE_FUNC_LIMIT_MS (   l)    MTRScopedTraceLimit ____mtr_scope(__FILE__, __FUNCTION__, (double)l * 0.000001)

Definition at line 200 of file minitrace.h.

◆ MTR_SCOPE_FUNC_LIMIT_S

#define MTR_SCOPE_FUNC_LIMIT_S (   l)    MTRScopedTraceLimit ____mtr_scope(__FILE__, __FUNCTION__, l)

Definition at line 199 of file minitrace.h.

◆ MTR_SCOPE_FUNC_S

#define MTR_SCOPE_FUNC_S (   aname,
  arg 
)    MTR_SCOPE_S(__FILE__, __FUNCTION__, aname, arg)

Definition at line 205 of file minitrace.h.

◆ MTR_SCOPE_I

#define MTR_SCOPE_I (   c,
  n,
  aname,
  aintval 
)

Definition at line 175 of file minitrace.h.

◆ MTR_SCOPE_S

#define MTR_SCOPE_S (   c,
  n,
  aname,
  astrval 
)

Definition at line 171 of file minitrace.h.

◆ MTR_START

#define MTR_START (   c,
  n,
  id 
)

Definition at line 157 of file minitrace.h.

◆ MTR_STEP

#define MTR_STEP (   c,
  n,
  id,
  step 
)

Definition at line 158 of file minitrace.h.

Enumeration Type Documentation

◆ mtr_arg_type

Enumerator
MTR_ARG_TYPE_NONE 
MTR_ARG_TYPE_INT 
MTR_ARG_TYPE_STRING_CONST 
MTR_ARG_TYPE_STRING_COPY 

Definition at line 79 of file minitrace.h.

Function Documentation

◆ internal_mtr_raw_event()

MINITRACE_EXPORT void internal_mtr_raw_event ( const char *  category,
const char *  name,
char  ph,
void *  id 
)

Definition at line 377 of file minitrace.cpp.

◆ internal_mtr_raw_event_arg()

MINITRACE_EXPORT 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 
)

Definition at line 434 of file minitrace.cpp.

◆ mtr_flush()

MINITRACE_EXPORT void mtr_flush ( void  )

Definition at line 373 of file minitrace.cpp.

◆ mtr_init()

MINITRACE_EXPORT void mtr_init ( const char *  json_file)

Definition at line 195 of file minitrace.cpp.

◆ mtr_init_from_stream()

MINITRACE_EXPORT void mtr_init_from_stream ( void *  stream)

Definition at line 178 of file minitrace.cpp.

◆ mtr_pool_string()

const MINITRACE_EXPORT char* mtr_pool_string ( const char *  str)

Definition at line 227 of file minitrace.cpp.

◆ mtr_register_sigint_handler()

MINITRACE_EXPORT void mtr_register_sigint_handler ( void  )

Definition at line 167 of file minitrace.cpp.

◆ mtr_shutdown()

MINITRACE_EXPORT void mtr_shutdown ( void  )

Definition at line 202 of file minitrace.cpp.

◆ mtr_start()

MINITRACE_EXPORT void mtr_start ( void  )

Definition at line 242 of file minitrace.cpp.

◆ mtr_stop()

MINITRACE_EXPORT void mtr_stop ( void  )

Definition at line 251 of file minitrace.cpp.

◆ mtr_time_s()

MINITRACE_EXPORT double mtr_time_s ( void  )

Definition at line 143 of file minitrace.cpp.



behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:08