HawkTracer  0.10.0
global_timeline.h
Go to the documentation of this file.
1 #ifndef HAWKTRACER_GLOBAL_TIMELINE_H
2 #define HAWKTRACER_GLOBAL_TIMELINE_H
3 
7 
9 
16 
18 
19 #define HT_TP_GLOBAL_SCOPED_INT(int_label) HT_TP_SCOPED_INT(ht_global_timeline_get(), int_label)
20 
24 #define HT_TP_GLOBAL_SCOPED_STRING(string_label) HT_TP_SCOPED_STRING(ht_global_timeline_get(), string_label)
25 
29 #define HT_TP_G_STRACEPOINT(label) HT_TP_STRACEPOINT(ht_global_timeline_get(), label)
30 
34 #define HT_TP_G_DYN_STRACEPOINT(label) HT_TP_DYN_STRACEPOINT(ht_global_timeline_get(), label)
35 
39 #define HT_TP_G_FUNCTION() HT_TP_FUNCTION(ht_global_timeline_get())
40 
44 #define HT_G_TRACE(string_label) HT_TRACE(ht_global_timeline_get(), string_label)
45 
46 #ifdef HT_TP_STRACEPOINT
47 
51  #define HT_G_TRACE_FUNCTION() HT_TRACE_FUNCTION_OPT(ht_global_timeline_get())
52 
55  #define HT_G_TRACE_OPT_STATIC(static_string_label) HT_TRACE_OPT_STATIC(ht_global_timeline_get(), static_string_label)
56 #else
57  #define HT_G_TRACE_FUNCTION() HT_TRACE_FUNCTION(ht_global_timeline_get())
58 #endif
59 
63 #define HT_G_TRACE_OPT_DYNAMIC(static_string_label) HT_TRACE_OPT_DYNAMIC(ht_global_timeline_get(), static_string_label)
64 
65 
66 #endif /* HAWKTRACER_GLOBAL_TIMELINE_H */
#define HT_API
Defines a directive for exporting/importing symbols from DLL.
Definition: macros.h:76
#define HT_DECLS_END
Defines an end of C linkage block.
Definition: macros.h:17
typedefHT_DECLS_BEGIN struct _HT_Timeline HT_Timeline
Definition: timeline.h:23
Stores a map of strings and their hash values.
#define HT_DECLS_BEGIN
Defines a beginning of C linkage block.
Definition: macros.h:16
HT_DECLS_BEGIN HT_API HT_Timeline * ht_global_timeline_get(void)
Gets a Global Timeline for the current thread.