summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-10 18:36:10 +0200
committerwm4 <wm4@nowhere>2015-08-10 18:36:10 +0200
commit5a52fe47a0e3fc4a84426eb7f705a50a44be9d98 (patch)
treebca9881ee78da2a18c24220a18b699dc61d5a63f /TOOLS
parent8d66bd76e2ebc4402df626f6467e0d5fa71ecf06 (diff)
downloadmpv-5a52fe47a0e3fc4a84426eb7f705a50a44be9d98.tar.bz2
mpv-5a52fe47a0e3fc4a84426eb7f705a50a44be9d98.tar.xz
TOOLS/stats-conv: allow passing regex via command line
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/stats-conv.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/TOOLS/stats-conv.py b/TOOLS/stats-conv.py
index 6f8c424fec..5884af5d46 100755
--- a/TOOLS/stats-conv.py
+++ b/TOOLS/stats-conv.py
@@ -5,7 +5,10 @@ import re
filename = sys.argv[1]
-event_regex = re.compile(".*")
+events = ".*"
+if len(sys.argv) > 2:
+ events = sys.argv[2]
+event_regex = re.compile(events)
"""
This script is meant to display stats written by mpv --dump-stats=filename.