0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

TOOLS/stats-conv: allow passing regex via command line

This commit is contained in:
wm4 2015-08-10 18:36:10 +02:00
parent 8d66bd76e2
commit 5a52fe47a0

View File

@ -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.