HawkTracer  0.10.0
timeline_listener.h File Reference
#include <hawktracer/base_types.h>
#include <stddef.h>

Go to the source code of this file.

Functions

HT_API size_t ht_timeline_listener_push_metadata (HT_TimelineListenerCallback callback, void *listener, HT_Boolean serialize)
 Pushes all metadata events (registry klasses, system information) to a listener. More...
 

Variables

HT_DECLS_BEGIN typedef void(* HT_TimelineListenerCallback )(TEventPtr events, size_t buffer_size, HT_Boolean serialized, void *user_data)
 A callback for the timeline listener. More...
 

Function Documentation

◆ ht_timeline_listener_push_metadata()

HT_API size_t ht_timeline_listener_push_metadata ( HT_TimelineListenerCallback  callback,
void *  listener,
HT_Boolean  serialize 
)

Pushes all metadata events (registry klasses, system information) to a listener.

Parameters
callbacka listener callback.
listenera pointer to the listener
serializeindicates whether events should be serialized before pushing to listener or not.
Returns
number of bytes which have been pushed to a listener.

Variable Documentation

◆ HT_TimelineListenerCallback

HT_DECLS_BEGIN typedef void(* HT_TimelineListenerCallback) (TEventPtr events, size_t buffer_size, HT_Boolean serialized, void *user_data)

A callback for the timeline listener.

The callback gets called whenever the internal timeline buffer gets flushed.

Parameters
eventsan event buffer containing serialized or non-serialized events.
buffer_sizea size of the events buffer.
serializedindicates whether events in the events buffer are serialized or not.
user_dataa pointer to object that was passed on listener registration.