Add profiling flamegraphs with pprof

This commit is contained in:
2025-12-06 15:58:11 -05:00
parent 74c28c9344
commit 1311cb830b
5 changed files with 444 additions and 36 deletions

View File

@@ -13,7 +13,8 @@ tracing-error = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[dev-dependencies]
criterion = "0.8.0"
criterion = "0.5"
pprof = { version = "0.15" , features = ["flamegraph", "criterion"] }
test-log = { version = "0.2", default-features = false, features = ["trace"] }
# Improve perf on debug builds: https://docs.rs/color-eyre/latest/color_eyre/#improving-perf-on-debug-builds
@@ -25,6 +26,7 @@ opt-level = 3
codegen-units = 1
lto = "fat"
panic = "abort"
debug = false # set true for profiling
[lib]
name = "aoc"