99#define vlc_tracer_Trace(tracer, ...) \
100 vlc_tracer_TraceWithTs(tracer, vlc_tick_now(), __VA_ARGS__)
126#define VLC_TRACE_END \
127 vlc_tracer_entry_FromString(NULL, NULL)
129#define VLC_TRACE(key, value) \
131 vlc_tick_t: vlc_tracer_entry_FromTick, \
132 char *: vlc_tracer_entry_FromString, \
133 const char *: vlc_tracer_entry_FromString) (key, value)
135#define VLC_TRACE_END \
136 vlc_tracer_entry_FromString(nullptr, nullptr)
159 const char *
id,
const char* stream,
168 const char *
id,
const char* stream,
195 const char *
id,
const char *event)
#define VLC_API
Definition: fourcc_gen.c:31
vlc_tick_t vlc_tick_now(void)
Precision monotonic clock.
Definition: thread.c:227
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:159
static struct vlc_tracer_entry vlc_tracer_entry_FromTick(const char *key, vlc_tick_t value)
Definition: vlc_tracer.h:110
#define VLC_TRACE(key, value)
Definition: vlc_tracer.h:130
static void vlc_tracer_TracePCR(struct vlc_tracer *tracer, const char *type, const char *id, vlc_tick_t pcr)
Definition: vlc_tracer.h:202
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:168
static void vlc_tracer_TraceRender(struct vlc_tracer *tracer, const char *type, const char *id, vlc_tick_t now, vlc_tick_t pts)
Definition: vlc_tracer.h:177
#define VLC_TRACE_END
Definition: vlc_tracer.h:127
static void vlc_tracer_TraceEvent(struct vlc_tracer *tracer, const char *type, const char *id, const char *event)
Definition: vlc_tracer.h:195
static struct vlc_tracer_entry vlc_tracer_entry_FromString(const char *key, const char *value)
Definition: vlc_tracer.h:118
void vlc_tracer_TraceWithTs(struct vlc_tracer *tracer, vlc_tick_t ts,...)
Emit traces.
Definition: tracer.c:49
void(* vlc_trace_cb)(void *data, vlc_tick_t ts, va_list entries)
Trace logging callback signature.
Definition: vlc_tracer.h:80
vlc_tracer_value
Trace message values.
Definition: vlc_tracer.h:48
#define vlc_tracer_Trace(tracer,...)
Definition: vlc_tracer.h:100
@ VLC_TRACER_STRING
Definition: vlc_tracer.h:51
@ VLC_TRACER_INT
Definition: vlc_tracer.h:49
@ VLC_TRACER_TICK
Definition: vlc_tracer.h:50
Trace message.
Definition: vlc_tracer.h:65
vlc_tracer_value_t value
Trace value.
Definition: vlc_tracer.h:67
const char * key
Key to identify the value.
Definition: vlc_tracer.h:66
enum vlc_tracer_value type
Type of the value.
Definition: vlc_tracer.h:68
Definition: vlc_tracer.h:83
void(* destroy)(void *data)
Definition: vlc_tracer.h:85
vlc_trace_cb trace
Definition: vlc_tracer.h:84
Definition: vlc_tracer.h:55
const char * string
Definition: vlc_tracer.h:58
int64_t integer
Definition: vlc_tracer.h:56
vlc_tick_t tick
Definition: vlc_tracer.h:57
This file is a collection of common definitions and types.
#define VLC_TICK_INVALID
Definition: vlc_config.h:44
Thread primitive declarations.
int64_t vlc_tick_t
High precision date or time interval.
Definition: vlc_tick.h:45
#define VLC_TICK_MAX
Definition: vlc_tick.h:48