HawkTracer  0.10.0
feature_cached_string.h
Go to the documentation of this file.
1 
8 #ifndef HAWKTRACER_FEATURE_CACHED_STRING_H
9 #define HAWKTRACER_FEATURE_CACHED_STRING_H
10 
11 #include <hawktracer/timeline.h>
12 
14 
23 
34 HT_API uintptr_t ht_feature_cached_string_add_mapping(HT_Timeline* timeline, const char* label);
35 
42 
43 HT_API uintptr_t ht_feature_cached_string_add_mapping_dynamic(HT_Timeline* timeline, const char* label);
44 
46 
47 
48 #endif /* HAWKTRACER_FEATURE_CACHED_STRING_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
HT_ErrorCode
Defines list of possible errors returned by library functions.
Definition: base_types.h:48
int HT_Boolean
A standard boolean type, possible values: HT_TRUE, HT_FALSE.
Definition: base_types.h:20
HT_DECLS_BEGIN HT_API HT_ErrorCode ht_feature_cached_string_enable(HT_Timeline *timeline, HT_Boolean thread_safe)
Enables a feature for the timeline.
#define HT_DECLS_BEGIN
Defines a beginning of C linkage block.
Definition: macros.h:16
HT_API uintptr_t ht_feature_cached_string_add_mapping_dynamic(HT_Timeline *timeline, const char *label)
HT_API uintptr_t ht_feature_cached_string_add_mapping(HT_Timeline *timeline, const char *label)
Adds a mapping.
HT_API void ht_feature_cached_string_push_map(HT_Timeline *timeline)
Pushes mapping events of all the strings registered in the feature.