vaticle / typedb

TypeDB: the polymorphic database powered by types
https://typedb.com
Mozilla Public License 2.0
3.72k stars 337 forks source link

Enable criterion flamegraphs #7001

Closed krishnangovindraj closed 3 months ago

krishnangovindraj commented 3 months ago

Usage and product changes

Re-enables flame graphs on the criterion storage benchmarks.

To execute a benchmark, we can either run it via Cargo:

cargo bench --package storage --bench bench_mvcc_storage --profile-time=5

or via Bazel:

bazel test --compilation_mode=opt //storage/benches:bench_mvcc_storage --test_arg=--bench --test_arg=--profile-time=5

Note that this currently does not finish successfull on ARM64 Macs because of a SIGBUS in libunwind.

Implementation

Re-enables flame graphs on the criterion storage benchmarks and updates dependencies to include require pprof library.

vaticle-bot commented 3 months ago

PR Review Checklist

Do not edit the content of this comment. The PR reviewer should simply update this comment by ticking each review item below, as they get completed.


Trivial Change

Code

Architecture