VLC  4.0.0-dev

Message traces. More...

Collaboration diagram for Tracing:

Modules

 Tracer
 Tracing back-end.
 

Files

file  vlc_tracer.h
 Tracing functions.
 

Data Structures

union  vlc_tracer_value_t
 
struct  vlc_tracer_entry
 Trace message. More...
 
struct  vlc_tracer_operations
 

Macros

#define vlc_tracer_Trace(tracer, ...)    vlc_tracer_TraceWithTs(tracer, vlc_tick_now(), __VA_ARGS__)
 

Typedefs

typedef void(* vlc_trace_cb) (void *data, vlc_tick_t ts, va_list entries)
 Trace logging callback signature. More...
 

Enumerations

enum  vlc_tracer_value { VLC_TRACER_INT , VLC_TRACER_TICK , VLC_TRACER_STRING }
 Trace message values. More...
 

Functions

void vlc_tracer_TraceWithTs (struct vlc_tracer *tracer, vlc_tick_t ts,...)
 Emit traces. More...
 

Detailed Description

Message traces.

Functions for modules to emit traces.

Macro Definition Documentation

◆ vlc_tracer_Trace

#define vlc_tracer_Trace (   tracer,
  ... 
)     vlc_tracer_TraceWithTs(tracer, vlc_tick_now(), __VA_ARGS__)

Typedef Documentation

◆ vlc_trace_cb

typedef void(* vlc_trace_cb) (void *data, vlc_tick_t ts, va_list entries)

Trace logging callback signature.

va-args can only be vlc_tracer_entry and the va-args list should be ended by a vlc_tracer_entry with a NULL key.

Parameters
datadata pointer as provided to vlc_tracer_Trace().

Enumeration Type Documentation

◆ vlc_tracer_value

Trace message values.

Enumerator
VLC_TRACER_INT 
VLC_TRACER_TICK 
VLC_TRACER_STRING 

Function Documentation

◆ vlc_tracer_TraceWithTs()

void vlc_tracer_TraceWithTs ( struct vlc_tracer tracer,
vlc_tick_t  ts,
  ... 
)

Emit traces.

va-args are a 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.

Parameters
tracertracer emitting the traces
tstimestamp of the current trace

References container_of, vlc_tracer_module::opaque, vlc_tracer::ops, vlc_tracer_operations::trace, and vlc_tracer_module::tracer.

Referenced by vlc_tracer_TraceRender().