Skip to content

Commit

Permalink
Profile allocations in Divan benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
nvzqz committed Dec 19, 2023
1 parent c5e3a5b commit f09bc34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ features = ["derive"]
version = "1.0.61"

[dev-dependencies]
divan = "0.1.5"
divan = "0.1.8"
insta = { version = "1.26.0", default-features = false }

[dev-dependencies.quickcheck]
Expand Down
3 changes: 3 additions & 0 deletions benches/divan.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
mod util;

#[global_allocator]
static ALLOC: divan::AllocProfiler = divan::AllocProfiler::system();

fn main() {
let _tracing = util::init_tracing();

Expand Down

0 comments on commit f09bc34

Please sign in to comment.