Skip to content

Commit

Permalink
Generate flamegraphs for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
infogulch committed Nov 16, 2023
1 parent 7e313d1 commit 876821a
Show file tree
Hide file tree
Showing 5 changed files with 257 additions and 27 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ jobs:
- run: cargo build --bench run_iai --release
- run: cargo bench --bench run_iai
- run: cargo bench --bench run_criterion
- run: cargo bench --bench run_criterion -- --profile-time 60

- name: Publish criterion benchmark results
uses: actions/upload-artifact@v3
Expand Down
216 changes: 213 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ serial_test = "2.0.0"
iai-callgrind = "0.7.3"
criterion = "0.5.1"

[target.'cfg(not(target_os = "windows"))'.dev-dependencies]
pprof = { version = "0.13.0", features = ["criterion", "flamegraph"] }

[patch.crates-io]
modular-bitfield = { git = "https://github.com/mthom/modular-bitfield" }

Expand Down
Loading

0 comments on commit 876821a

Please sign in to comment.