VLC 4.0.0-dev
Loading...
Searching...
No Matches

Tracing functions. More...

Include dependency graph for vlc_tracer.h:

Go to the source code of this file.

Data Structures

union  vlc_tracer_value_t
 
struct  vlc_tracer_entry
 Trace message. More...
 
struct  vlc_tracer_trace
 Trace record containing the key-values from the trace. More...
 
struct  vlc_tracer_operations
 Tracer operations returned by the module probe function. More...
 

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)))
 

Typedefs

typedef struct vlc_tracer_operations *(* vlc_tracer_open_cb) (vlc_object_t *obj, void **restrict sysp)
 Module probe/open function signature.
 

Enumerations

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

Functions

struct vlc_tracervlc_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)
 
static void vlc_tracer_TraceStreamPTS (struct vlc_tracer *tracer, const char *type, const char *id, const char *stream, vlc_tick_t pts)
 
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)
 
static void vlc_tracer_TraceEvent (struct vlc_tracer *tracer, const char *type, const char *id, const char *event)
 
static void vlc_tracer_TracePCR (struct vlc_tracer *tracer, const char *type, const char *id, vlc_tick_t pcr)
 

Detailed Description

Tracing functions.