From 458b37df4c132785b14acd6aaa807a04a04a6cf2 Mon Sep 17 00:00:00 2001 From: not-matthias Date: Mon, 6 Oct 2025 11:13:22 +0200 Subject: [PATCH] fix: decrease stack sampling size for python --- src/run/runner/wall_time/perf/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/run/runner/wall_time/perf/mod.rs b/src/run/runner/wall_time/perf/mod.rs index 7cefc097..c9386bc7 100644 --- a/src/run/runner/wall_time/perf/mod.rs +++ b/src/run/runner/wall_time/perf/mod.rs @@ -94,7 +94,9 @@ impl PerfRunner { || config.command.contains("uv") || config.command.contains("python") { - (UnwindingMode::Dwarf, Some(65528)) + // Max supported stack size is 64KiB, but this will increase the file size by a lot. In + // order to allow uploads and maintain accuracy, we limit this to 8KiB. + (UnwindingMode::Dwarf, Some(8 * 1024)) } else { // Default to dwarf unwinding since it works well with most binaries. debug!("No call graph mode detected, defaulting to dwarf");