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.