Skip to content

core: add trace API

Nicolas LeQuec requested to merge nicolas_lequec/vlc:trace-display into master

Add a new API to collect traces from demuxer, decoder...

Instead of the previous log system, traces are stored under a JSON notation, it is useful to analyze them later.

Traces are structured as follows:

  "Timestamp": 11723487273,
  "Body": {
    "type": "DEC",
    "id": "audio/2",
    "stream": "IN",
    "pts": 4481452000,
    "dts": 4481452000

It's inspired from:

Json logs may then be processed by a script to be displayed on a graph, here is the project link:

And here a render of what can be obtained: traces_display

Edited by Nicolas LeQuec

Merge request reports