Skip to content

Commit 458b37d

Browse files
committed
fix: decrease stack sampling size for python
1 parent 7dc4062 commit 458b37d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/run/runner/wall_time/perf

src/run/runner/wall_time/perf/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ impl PerfRunner {
9494
|| config.command.contains("uv")
9595
|| config.command.contains("python")
9696
{
97-
(UnwindingMode::Dwarf, Some(65528))
97+
// Max supported stack size is 64KiB, but this will increase the file size by a lot. In
98+
// order to allow uploads and maintain accuracy, we limit this to 8KiB.
99+
(UnwindingMode::Dwarf, Some(8 * 1024))
98100
} else {
99101
// Default to dwarf unwinding since it works well with most binaries.
100102
debug!("No call graph mode detected, defaulting to dwarf");

0 commit comments

Comments
 (0)