HawkTracer  0.10.0
tracepoint.h
Go to the documentation of this file.
1 #ifndef HAWKTRACER_TRACEPOINT_H
2 #define HAWKTRACER_TRACEPOINT_H
3 
5 
6 #if defined(HT_SCOPED_TRACEPOINT_MACRO_ENABLED)
7 
8  #define HT_TRACE(timeline, string_label) \
9  HT_TP_SCOPED_STRING(timeline, string_label)
10 
11  #define HT_TRACE_OPT_STATIC(timeline, static_string_label) \
12  HT_TP_STRACEPOINT(timeline, static_string_label)
13 
14  #define HT_TRACE_OPT_DYNAMIC(timeline, dynamic_string_label) \
15  HT_TP_DYN_STRACEPOINT(timeline, dynamic_string_label)
16 
17  #define HT_TRACE_FUNCTION(timeline) \
18  HT_TRACE(timeline, __func__)
19 
20  #define HT_TRACE_FUNCTION_OPT(timeline) \
21  HT_TP_FUNCTION(timeline)
22 
23 #endif /* HT_SCOPED_TRACEPOINT_MACRO_ENABLED */
24 
25 #endif /* HAWKTRACER_TACEPOINT_H */