[PATCH v3 0/2] perf python TUI report and flamegraph

From: Ian Rogers

Date: Sun Aug 09 2026 - 00:17:08 EST


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.

v3: Tweaks to commit messages (Sashiko).

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/20260808065743.2328212-1-irogers@xxxxxxxxxx/

v1:
https://lore.kernel.org/linux-perf-users/20250725082425.20999-1-irogers@xxxxxxxxxx/

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

tools/perf/python/treport.py | 560 +++++++++++++++++++++++++++++++++++
1 file changed, 560 insertions(+)
create mode 100755 tools/perf/python/treport.py

--
2.55.0.654.g21b8a5bc05-goog