summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-09-25 23:19:59 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-26 20:49:30 +0200
commit56d9f05dce1dd091c0ca2683aaa2d70fdc1884a3 (patch)
tree2ebcf496f03161fc906ec5c122ad92fdc25c99e9 /tools/perf/scripts/python/stackcollapse.py
parent164c7edd80e10f40aaf2a7817f1a23015f2fc9dc (diff)
downloadlinux-next-56d9f05dce1dd091c0ca2683aaa2d70fdc1884a3.tar.gz
linux-next-56d9f05dce1dd091c0ca2683aaa2d70fdc1884a3.zip
perf python: Port sched-migration and SchedGui to perf module
Port sched-migration.py and SchedGui.py from tools/perf/scripts/python/ to standalone modules in tools/perf/python/: - Refactor sched-migration.py into a SchedMigrationAnalyzer class using perf.session for event processing and add argparse CLI support (-i/--input, -v/--verbose, --gui, --no-gui). - Port SchedGui.py to tools/perf/python/ as a local module dependency. - Load wxPython dynamically via importlib only when GUI mode (--gui) is requested so text-mode analysis, testing on headless systems, and static analysis (mypy/pylint) succeed without wx installed. - Remove Python 2 compatibility code. Add a shell test (test_sched_migration_python.sh) to verify the standalone script. 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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions