Add basic tracing lib files

This commit is contained in:
Christophe Bedard 2019-05-16 12:54:01 +02:00
parent 7c51d23850
commit 5583fa68d1
4 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#ifndef __TRACETOOLS_TRACETOOLS_H_
#define __TRACETOOLS_TRACETOOLS_H_
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#define TRACEPOINT(event_name, ...) \
(ros_trace_##event_name)(__VA_ARGS__)
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Report whether tracing is compiled in
*/
bool ros_trace_compile_status();
/**
* tp: rcl_init
*/
void ros_trace_rcl_init();
#ifdef __cplusplus
}
#endif
#endif /* __TRACETOOLS_TRACETOOLS_H_ */