summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-09-25 23:20:12 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-26 20:49:31 +0200
commit5084b5f91a70e0aa2811c7c894ac19424bfc4194 (patch)
tree4e9d1470c94504c12ebf202cffad6dd9bb1167b9 /tools/perf/scripts/python/flamegraph.py
parent3df7d85a242fb93cfa63466b8fc9fc44aad19b92 (diff)
downloadlinux-next-5084b5f91a70e0aa2811c7c894ac19424bfc4194.tar.gz
linux-next-5084b5f91a70e0aa2811c7c894ac19424bfc4194.zip
perf python: Move and clean up parallel-perf.py
Move parallel-perf.py from tools/perf/scripts/python/ to tools/perf/python/ as it is a standalone Python utility that invokes 'perf script' in parallel across time slices and CPUs. Update tools/perf/tests/shell/script.sh accordingly. Also fix bugs and clean up the script to pass mypy and pylint without suppression comments: - Fix Work.command() to return the shlex.quote()-escaped command string (previously sh_cmd was computed with shlex.quote() and discarded in favor of unquoted self.cmd). - Close self.popen.stdout in the parent process after spawning the consumer subprocess in Work.start() when --pipe-to is used, ensuring the producer receives SIGPIPE if the consumer exits early and avoiding leaking the pipe file descriptor. - Convert method and function names to snake_case, specify utf-8 file encodings, and add type annotations and docstrings. Assisted-by: Antigravity:gemini-3.1-pro Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions