Skip to content

perf python TUI report and flamegraph

Ian Rogers linux-perf-users lkml 3 versions – Applied

Status from this message: Thanks, applied to perf-tools-next, for v7.4.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyApplied
  2. v32 patches 0 repliesSuperseded
  3. v22 patches 0 repliesSuperseded

v1 from the cover letter

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2perf python: New treport scripttools/perf/python/treport.py+207 -00 replies
2/2perf python: treport add flamegraph supporttools/perf/python/treport.py+355 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/2] perf python TUI report and flamegraph

Implement a perf TUI using the python textual module. Using the textual framework means that in most modern terminals the mouse is supported, the color scheme can be configured, and screenshots made.

The work is dependent on the extensions to the perf python module merged into perf-tools-next such as commit 88439191ad5e ("perf python:
Add callchain support"). It is also dependent on the python textual module for TUI support.

v4: Fix typo of profle to profile and tweak argparse command
description to only mention flamegraph after that support is added (Sashiko). Sashiko notes a high severity issue because the script depends on perf Python module extensions that are already merged. This is because Sashiko is testing the changes against the perf-tools rather than perf-tools-next. Verified rich.errors.MarkupError don't occur for kernel DSOs, primarily as there is always a space after the square brackets.

v3: Tweaks to commit messages (Sashiko).
https://lore.kernel.org/linux-perf-users/[email protected]/

v2: Migrate from inbuilt perf python interpreter to perf python
module. Improve the flamegraph performance. Use the textual's color scheme rather than red and white.
https://lore.kernel.org/linux-perf-users/[email protected]/

v1:
https://lore.kernel.org/linux-perf-users/[email protected]/

Alice Rogers (2):
perf python: New treport script
perf python: treport add flamegraph support

 tools/perf/python/treport.py | 561 +++++++++++++++++++++++++++++++++++
 1 file changed, 561 insertions(+)
 create mode 100755 tools/perf/python/treport.py
Signature · 1 line
2.55.0.654.g21b8a5bc05-goog