121 void **restrict sysp);
162#define vlc_tracer_TraceWithTs(tracer, ts, ...) \
163 (vlc_tracer_TraceWithTs)(tracer, ts, &(const struct vlc_tracer_trace) { \
164 .entries = (const struct vlc_tracer_entry[]) { \
169#define vlc_tracer_Trace(tracer, ...) \
170 vlc_tracer_TraceWithTs(tracer, vlc_tick_now(), __VA_ARGS__)
198#define VLC_TRACE_END \
199 vlc_tracer_entry_FromString(NULL, NULL)
201#define VLC_TRACE(key, value) \
203 int64_t: vlc_tracer_entry_FromInt, \
204 double: vlc_tracer_entry_FromDouble, \
205 char *: vlc_tracer_entry_FromString, \
206 const char *: vlc_tracer_entry_FromString) (key, value)
208#define VLC_TRACE_END \
209 vlc_tracer_entry_FromString(nullptr, nullptr)
227#define VLC_TRACE_TICK_NS(key, tick) VLC_TRACE((key), NS_FROM_VLC_TICK((tick)))
239 const char *
id,
const char* stream,
250 const char *
id,
const char* stream,
262 const char *
id,
const char *event)
#define VLC_API
Definition fourcc_gen.c:31
#define VLC_TRACE(key, value)
Definition vlc_tracer.h:202
#define VLC_TRACE_TICK_NS(key, tick)
Definition vlc_tracer.h:228
struct vlc_tracer * vlc_tracer_Create(vlc_object_t *parent, const char *name)
Create a tracer object.
Definition tracer.c:71
void vlc_tracer_Destroy(struct vlc_tracer *tracer)
Destroy a tracer object.
Definition tracer.c:88
static struct vlc_tracer_entry vlc_tracer_entry_FromDouble(const char *key, double value)
Definition vlc_tracer.h:181
#define VLC_TRACE_END
Definition vlc_tracer.h:199
#define vlc_tracer_TraceWithTs(tracer, ts,...)
Definition vlc_tracer.h:163
static struct vlc_tracer_entry vlc_tracer_entry_FromInt(const char *key, int64_t value)
Definition vlc_tracer.h:173
static struct vlc_tracer_entry vlc_tracer_entry_FromString(const char *key, const char *value)
Definition vlc_tracer.h:190
#define vlc_tracer_Trace(tracer,...)
Definition vlc_tracer.h:170
static void vlc_tracer_TraceStreamPTS(struct vlc_tracer *tracer, const char *type, const char *id, const char *stream, vlc_tick_t pts)
Definition vlc_tracer.h:239
static void vlc_tracer_TracePCR(struct vlc_tracer *tracer, const char *type, const char *id, vlc_tick_t pcr)
Definition vlc_tracer.h:271
static void vlc_tracer_TraceStreamDTS(struct vlc_tracer *tracer, const char *type, const char *id, const char *stream, vlc_tick_t pts, vlc_tick_t dts)
Definition vlc_tracer.h:250
static void vlc_tracer_TraceEvent(struct vlc_tracer *tracer, const char *type, const char *id, const char *event)
Definition vlc_tracer.h:262
vlc_tracer_value
Trace message values.
Definition vlc_tracer.h:52
@ VLC_TRACER_STRING
Definition vlc_tracer.h:55
@ VLC_TRACER_INT
Definition vlc_tracer.h:53
@ VLC_TRACER_DOUBLE
Definition vlc_tracer.h:54
const char name[16]
Definition httpd.c:1298
VLC object common members.
Definition vlc_objects.h:53
Trace message.
Definition vlc_tracer.h:69
vlc_tracer_value_t value
Trace value.
Definition vlc_tracer.h:71
const char * key
Key to identify the value.
Definition vlc_tracer.h:70
enum vlc_tracer_value type
Type of the value.
Definition vlc_tracer.h:72
Tracer operations returned by the module probe function.
Definition vlc_tracer.h:95
void(* destroy)(void *sys)
Called to clean module specific resources.
Definition vlc_tracer.h:111
void(* trace)(void *sys, vlc_tick_t ts, const struct vlc_tracer_trace *trace)
Called when tracing data.
Definition vlc_tracer.h:104
Trace record containing the key-values from the trace.
Definition vlc_tracer.h:81
const struct vlc_tracer_entry * entries
Defines the list of key-value in the trace.
Definition vlc_tracer.h:87
Definition vlc_tracer.h:59
const char * string
Definition vlc_tracer.h:62
double double_
Definition vlc_tracer.h:61
int64_t integer
Definition vlc_tracer.h:60
This file is a collection of common definitions and types.
Thread primitive declarations.
int64_t vlc_tick_t
High precision date or time interval.
Definition vlc_tick.h:48