From cc94436c5b3df9db96ddb34fbf4c7d4b467b62ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 11 May 2014 17:06:25 +0200 Subject: 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. --- TOOLS/stats-conv.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'TOOLS') 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 = [] -- cgit v1.2.3