Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func expensiveOperation() uint64 {
}

// Expensive recursive computation that will dominate flamegraph
fibResult := recursiveFib(30)
fibResult := recursiveFib(15)

// More expensive work - sum the data
sum := uint64(0)
Expand All @@ -40,6 +40,6 @@ func doWork(n int) uint64 {

func actualWork() uint64 {
time.Sleep(1 * time.Millisecond)
result := doWork(30)
result := doWork(15)
return 42 + result
}
5 changes: 5 additions & 0 deletions go-runner/src/runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ fn run_cmd<P: AsRef<Path>>(
let mut cmd = Command::new(go_binary);
cmd.args([
"test",
// Disable stripping of symbols and debug information
"-ldflags=-s=false -w=false",
// Keep the test binary on disk after executing it. This is required by
// the runner to properly parse the symbols and debug info.
"-work",
"-overlay",
&overlay_file.to_string_lossy(),
"-bench",
Expand Down
Loading