HawkTracer  0.10.0
global_timeline.h File Reference

Go to the source code of this file.

Macros

#define HT_TP_GLOBAL_SCOPED_INT(int_label)   HT_TP_SCOPED_INT(ht_global_timeline_get(), int_label)
 
#define HT_TP_GLOBAL_SCOPED_STRING(string_label)   HT_TP_SCOPED_STRING(ht_global_timeline_get(), string_label)
 
#define HT_TP_G_STRACEPOINT(label)   HT_TP_STRACEPOINT(ht_global_timeline_get(), label)
 
#define HT_TP_G_DYN_STRACEPOINT(label)   HT_TP_DYN_STRACEPOINT(ht_global_timeline_get(), label)
 
#define HT_TP_G_FUNCTION()   HT_TP_FUNCTION(ht_global_timeline_get())
 
#define HT_G_TRACE(string_label)   HT_TRACE(ht_global_timeline_get(), string_label)
 Simplified version of the HT_TRACE() macro for the Global Timeline. More...
 
#define HT_G_TRACE_FUNCTION()   HT_TRACE_FUNCTION_OPT(ht_global_timeline_get())
 Simplified version of the HT_TRACE_FUNCTION() (or HT_TRACE_FUNCTION_OPT(), depending on the environment) macro for the Global Timeline. More...
 
#define HT_G_TRACE_OPT_STATIC(static_string_label)   HT_TRACE_OPT_STATIC(ht_global_timeline_get(), static_string_label)
 Simplified version of the HT_TRACE_OPT_STATIC() macro for the Global Timeline. More...
 
#define HT_G_TRACE_OPT_DYNAMIC(static_string_label)   HT_TRACE_OPT_DYNAMIC(ht_global_timeline_get(), static_string_label)
 Simplified version of the HT_G_TRACE_OPT_DYNAMIC() macro for the Global Timeline. More...
 

Functions

HT_DECLS_BEGIN HT_API HT_Timelineht_global_timeline_get (void)
 Gets a Global Timeline for the current thread. More...
 

Macro Definition Documentation

◆ HT_G_TRACE

#define HT_G_TRACE (   string_label)    HT_TRACE(ht_global_timeline_get(), string_label)

Simplified version of the HT_TRACE() macro for the Global Timeline.

◆ HT_G_TRACE_FUNCTION

#define HT_G_TRACE_FUNCTION ( )    HT_TRACE_FUNCTION_OPT(ht_global_timeline_get())

Simplified version of the HT_TRACE_FUNCTION() (or HT_TRACE_FUNCTION_OPT(), depending on the environment) macro for the Global Timeline.

◆ HT_G_TRACE_OPT_DYNAMIC

#define HT_G_TRACE_OPT_DYNAMIC (   static_string_label)    HT_TRACE_OPT_DYNAMIC(ht_global_timeline_get(), static_string_label)

Simplified version of the HT_G_TRACE_OPT_DYNAMIC() macro for the Global Timeline.

◆ HT_G_TRACE_OPT_STATIC

#define HT_G_TRACE_OPT_STATIC (   static_string_label)    HT_TRACE_OPT_STATIC(ht_global_timeline_get(), static_string_label)

Simplified version of the HT_TRACE_OPT_STATIC() macro for the Global Timeline.

◆ HT_TP_G_DYN_STRACEPOINT

#define HT_TP_G_DYN_STRACEPOINT (   label)    HT_TP_DYN_STRACEPOINT(ht_global_timeline_get(), label)

◆ HT_TP_G_FUNCTION

#define HT_TP_G_FUNCTION ( )    HT_TP_FUNCTION(ht_global_timeline_get())

◆ HT_TP_G_STRACEPOINT

#define HT_TP_G_STRACEPOINT (   label)    HT_TP_STRACEPOINT(ht_global_timeline_get(), label)

◆ HT_TP_GLOBAL_SCOPED_INT

#define HT_TP_GLOBAL_SCOPED_INT (   int_label)    HT_TP_SCOPED_INT(ht_global_timeline_get(), int_label)

◆ HT_TP_GLOBAL_SCOPED_STRING

#define HT_TP_GLOBAL_SCOPED_STRING (   string_label)    HT_TP_SCOPED_STRING(ht_global_timeline_get(), string_label)

Function Documentation

◆ ht_global_timeline_get()

HT_DECLS_BEGIN HT_API HT_Timeline* ht_global_timeline_get ( void  )

Gets a Global Timeline for the current thread.

Returns
a pointer to the Global Timeline of the current thread.