VLC 4.0.0-dev
|
Macros | |
#define | vlc_tracer_TraceWithTs(tracer, ts, ...) |
#define | vlc_tracer_Trace(tracer, ...) vlc_tracer_TraceWithTs(tracer, vlc_tick_now(), __VA_ARGS__) |
#define | VLC_TRACE_END vlc_tracer_entry_FromString(NULL, NULL) |
#define | VLC_TRACE(key, value) |
#define | VLC_TRACE_TICK_NS(key, tick) VLC_TRACE((key), NS_FROM_VLC_TICK((tick))) |
Functions | |
struct vlc_tracer * | vlc_tracer_Create (vlc_object_t *parent, const char *name) |
Create a tracer object. | |
void | vlc_tracer_Destroy (struct vlc_tracer *tracer) |
Destroy a tracer object. | |
void | vlc_tracer_TraceWithTs (struct vlc_tracer *tracer, vlc_tick_t ts, const struct vlc_tracer_trace *trace) |
Emit traces. | |
static struct vlc_tracer_entry | vlc_tracer_entry_FromInt (const char *key, int64_t value) |
static struct vlc_tracer_entry | vlc_tracer_entry_FromDouble (const char *key, double value) |
static struct vlc_tracer_entry | vlc_tracer_entry_FromString (const char *key, const char *value) |
#define VLC_TRACE | ( | key, | |
value | |||
) |
#define VLC_TRACE_END vlc_tracer_entry_FromString(NULL, NULL) |
#define VLC_TRACE_TICK_NS | ( | key, | |
tick | |||
) | VLC_TRACE((key), NS_FROM_VLC_TICK((tick))) |
#define vlc_tracer_Trace | ( | tracer, | |
... | |||
) | vlc_tracer_TraceWithTs(tracer, vlc_tick_now(), __VA_ARGS__) |
#define vlc_tracer_TraceWithTs | ( | tracer, | |
ts, | |||
... | |||
) |
struct vlc_tracer * vlc_tracer_Create | ( | vlc_object_t * | parent, |
const char * | name | ||
) |
Create a tracer object.
parent | parent object used to create the tracer |
name | module to load or NULL for the default one |
References unlikely, vlc_module_load(), VLC_OBJECT, vlc_object_delete, vlc_object_logger, and vlc_tracer_load().
Referenced by libvlc_InternalInit().
void vlc_tracer_Destroy | ( | struct vlc_tracer * | tracer | ) |
Destroy a tracer object.
References VLC_OBJECT, and vlc_object_delete.
Referenced by libvlc_InternalCleanup().
|
inlinestatic |
References vlc_tracer_value_t::double_, vlc_tracer_entry::key, vlc_tracer_entry::value, and VLC_TRACER_DOUBLE.
|
inlinestatic |
References vlc_tracer_value_t::integer, vlc_tracer_entry::key, vlc_tracer_entry::value, and VLC_TRACER_INT.
|
inlinestatic |
References vlc_tracer_entry::key, vlc_tracer_value_t::string, vlc_tracer_entry::value, and VLC_TRACER_STRING.
void vlc_tracer_TraceWithTs | ( | struct vlc_tracer * | tracer, |
vlc_tick_t | ts, | ||
const struct vlc_tracer_trace * | trace | ||
) |
Emit traces.
tracer | tracer emitting the traces |
ts | timestamp of the current trace |
trace | the trace to register with its list of key / value parameters. Key must be a not NULL string. Value has to be defined with one of the type defined in the vlc_tracer_entry union. |
References vlc_tracer::ops, vlc_tracer_operations::trace, and vlc_tracer_module::tracer.