diff options
author | Paolo Bonzini <[email protected]> | 2016-04-12 15:26:13 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-06-21 13:18:35 -0300 |
commit | 6745d8ea825966b0956c691cf7fccc13debedc39 (patch) | |
tree | 375958f5410db5095d172b21f02e5bb737fb97c6 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 7da36e94e7fad768ca8640b61ed1f49b284e1dc5 (diff) |
perf script: Add stackcollapse.py script
Add stackcollapse.py script as an example of parsing call chains, and
also of using optparse to access command line options.
The flame graph tools include a set of scripts that parse output from
various tools (including "perf script"), remove the offsets in the
function and collapse each stack to a single line. The website also
says "perf report could have a report style [...] that output folded
stacks directly, obviating the need for stackcollapse-perf.pl", so here
it is.
This script is a Python rewrite of stackcollapse-perf.pl, using the perf
scripting interface to access the perf data directly from Python.
Signed-off-by: Paolo Bonzini <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Brendan Gregg <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions