Skip to content

Commit

Permalink
Enable source code view when profiling benchmarks
Browse files Browse the repository at this point in the history
Tested with Apple's Instruments.
  • Loading branch information
walles committed Jul 6, 2023
1 parent f3bbd27 commit 84881df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libloadviz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ cbindgen = "0.24.3"
criterion = "0.5"

# See: https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.release]
debug = 1 # 1 = Line number information only
[profile.bench]
# "true" = everything, so we can see source code in Instruments when profiling
debug = true

# Ref:
# https://github.com/walles/riff/blob/432c0b08523818e461eded0407a009db2e795996/Cargo.toml#L48-L54
Expand Down

0 comments on commit 84881df

Please sign in to comment.