1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 13:32:16 +00:00

TOOLS/stats-conv: draw playloop and AO thread events separately

Use for all AO thread events y=0.5, while playloop events remain at y=1.
This makes the graph easier to read.
This commit is contained in:
wm4 2014-05-11 17:06:25 +02:00
parent 7cab9ea2fa
commit cc94436c5b

View File

@ -71,6 +71,11 @@ for line in [line.split("#")[0].strip() for line in open(filename, "r")]:
e.type = "event-signal"
e.vals.append((ts, 1))
ao_events = ["ao fill", "audio wait"]
for e in G.sevents:
if e.name in ao_events:
e.vals = [(x, y * 0.5) for (x, y) in e.vals]
plot.hold(True)
mainpl = plot.subplot(2, 1, 1)
legend = []