Skip to content

Commit 06a5633

Browse files
authored
fix: decrease stack sampling size for python (#125)
1 parent 7dc4062 commit 06a5633

File tree

1 file changed

+3
-1
lines changed
  • src/run/runner/wall_time/perf

1 file changed

+3
-1
lines changed

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)