nnethercote / dhat-rs

Heap profiling and ad hoc profiling for Rust programs.
Apache License 2.0
713 stars 36 forks source link

Add `Profiler::finish_into_string(self) -> String`. #36

Open finnbear opened 1 month ago

finnbear commented 1 month ago

Thanks for making this. I successfully integrated it into my server such that I can produce heap profiles on demand. However, I noticed the following issues:

This PR addresses these issues, at the cost of making the API a bit more confusing (you can set an output path and then have it be ignored when you finish into a String).