gstreamer/tracer/tracer/parser_perf.py
Stefan Sauer ee72bd1b09 tracer: parser: small speedup
Add a parser_perf test. Skip the extra filter stage and change the regex to
match on category=TRACE lines only.
Also flip the check in analysis_runner, since we only have a few tracer
classes in the beginning, the rest are tracer entries.
2016-12-25 11:38:28 +01:00

13 lines
346 B
Python

from analysis_runner import AnalysisRunner
from parser import Parser
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('file', nargs='?', default='debug.log')
args = parser.parse_args()
with Parser(args.file) as log:
runner = AnalysisRunner(log)
runner.run()