bheisler / iai

Experimental one-shot benchmarking/profiling harness for Rust
Apache License 2.0
563 stars 35 forks source link

Allocated memory using GlobalAlloc #18

Open AlexMikhalev opened 3 years ago

AlexMikhalev commented 3 years ago

This PR is for discussion, not sure if it fits into your vision. My use case: I would like to keep track of allocated memory for data structures and plot them in criterion (eventually). I wasn't able to find a way to track it via Valgrind so I took crates from rust-analyzer (profile and arena) and added a single one-liner to output memory in bytes as part of the summary. @bheisler What are your thoughts on that direction? the rust-analyzer team put a bit of effort into this profiling crate, do you think it's worth re-using it? Original article