Commit graph

27 commits

Author SHA1 Message Date
Thibault Saunier 6f9e5d4494 Pass python files through autopep8 2019-04-03 13:38:42 +00:00
Stefan Sauer 3724a07f87 tracer: tsplot: tune the plot style a bit
Tweak the styles and spacing. Make the title multi-line and add more info.
2017-03-03 21:31:59 +01:00
Stefan Sauer 3320c2ba5e tracer: tsplot: ensure multiplots use same xrange
Only this way one can visually align events with buffer graphs.
2017-03-02 21:28:15 +01:00
Stefan Sauer 1a5f82fc0c tracer: tsplot: add a 3rd plot showing cycle vs. durations
This is helpful to spot time-segments where we processes slower than required
for real-time playback.
2017-03-02 21:28:15 +01:00
Stefan Sauer e4f05cb577 tracer: tsplot: separate the event section
Place the events below the buffer-ts. This makes it more readable in many cases.
2017-02-10 18:15:15 +01:00
Stefan Sauer e88433a9ce tracer: tools: add a brief tool description 2017-02-09 15:52:40 +01:00
Stefan Sauer 7da9662d3b tracer: tsplot: a new tool to draw buffer-ts vs. clock time graphs
This tool helps to inspect data flow on each pad. It shows buffer timestamps
and events in relation to wall clock.
2017-02-09 15:48:34 +01:00
Stefan Sauer 9666adcb5e tracer: REAME: planning update 2017-02-09 15:48:34 +01:00
Stefan Sauer bb3bff3659 tracer: stats: python style cleanup 2017-02-09 15:48:34 +01:00
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
Stefan Sauer 5eeba8c979 tracer: gsttr-stats: add a fast path for tracer-entry matching
Extract the structure name from the string and only parse the full structure,
if we are going to handle it.
2016-12-25 11:38:28 +01:00
Stefan Sauer 013b747404 tracer: gsttr-stats: don't average aggregated values
Only collect the first/last values for them.
2016-12-20 21:06:40 +01:00
Stefan Sauer 4771b445e9 tracer/gsttr-stats: skip optional fields 2016-12-20 12:10:43 +01:00
Stefan Sauer 167be7d7af tracer/structure: handle boolean fields 2016-12-20 12:10:28 +01:00
Stefan Sauer 4a8a29a884 tracer/gsttr-stats: improve formatting
Add a headline and print the results as columns. Use ':' in ts format.
2016-12-20 10:33:36 +01:00
Stefan Sauer bbd75cb65e tracer/README: update docs
Update status of what is done and what we want to figure still.
2016-12-20 10:26:55 +01:00
Stefan Sauer e8fffa073d tracer/parser: use local vars in the iterator function
This saves variable lookups in this thight loop.
2016-12-20 09:25:30 +01:00
Stefan Sauer 876f3994ca tracer: pep8 cleanup 2016-12-20 08:24:57 +01:00
Stefan Sauer 52ce3ef666 tracer: update docstrings 2016-12-20 08:24:57 +01:00
Stefan Sauer 64ce582313 tracer/structure: improve performance
Use local vars in the parser. This way we can make them static methods.
2016-12-20 08:24:57 +01:00
Stefan Sauer b2576972ce tracer/gsttr-stats: adding some filtering options
Also adding a way to show what is in the file.
2016-12-20 08:24:57 +01:00
Stefan Sauer 2239c8b7ac tracer/Makefile: fix test invocation
And fix a deprecation warning.
2016-12-20 08:24:57 +01:00
Stefan Sauer 91ac5089cf tracer/structure: add more tests and a benchmark 2016-12-20 08:24:57 +01:00
Stefan Sauer 2150443565 tracer/gsttr-stats: move time unit hack into method 2016-12-20 08:24:57 +01:00
Stefan Sauer 68d1925826 tracer/gsttr-stats: split Analyzer into Analyzer and AnalysisRunner
This lets us run chain analyzers. Move the stats collection into the
gsttr-stats tool.
2016-12-20 08:24:57 +01:00
Stefan Sauer a066c2f332 tracer: add a first tool to report aggregated findings
A tool to report min/max/avg values per scope and traced value.
2016-12-20 08:24:57 +01:00
Stefan Sauer 896201af35 tracer: add new python library to process tracer logs
This is the beginning of a python library for wrting tools that process tracer
logs. This library contains a structure parser written in python to avoid the
dependency on gobject introspection (and the slowness and non pythoness that
comes with it).
2016-12-20 08:24:57 +01:00