summaryrefslogtreecommitdiffstats
path: root/TOOLS/stats-conv.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-11 17:06:25 +0200
committerwm4 <wm4@nowhere>2014-05-11 17:07:26 +0200
commitcc94436c5b3df9db96ddb34fbf4c7d4b467b62ca (patch)
treefbcda65534904845ff8b71e130ce6e6edfba2806 /TOOLS/stats-conv.py
parent7cab9ea2fa6a94a96496560b027c4bc029552eb1 (diff)
downloadmpv-cc94436c5b3df9db96ddb34fbf4c7d4b467b62ca.tar.bz2
mpv-cc94436c5b3df9db96ddb34fbf4c7d4b467b62ca.tar.xz
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.
Diffstat (limited to 'TOOLS/stats-conv.py')
-rwxr-xr-xTOOLS/stats-conv.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/TOOLS/stats-conv.py b/TOOLS/stats-conv.py
index 941cb1539e..5f81836d8f 100755
--- a/TOOLS/stats-conv.py
+++ b/TOOLS/stats-conv.py
@@ -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 = []