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