jonhoo / inferno

A Rust port of FlameGraph
Other
1.64k stars 117 forks source link

add inferno-collapse-ghcprof to handle GHC's prof files #300

Closed dten closed 11 months ago

dten commented 1 year ago

Because this format is not directly rust related I'm not sure if you would prefer this be part of this repo or be a separate crate listing

Basically GHC (the Haskell compiler) has its own format for profiling traces and this adds collapsing for it.

https://downloads.haskell.org/ghc/latest/docs/users_guide/profiling.html

dten commented 1 year ago

I think I've addressed all the comments with updates except for the utf8 one. I will probably have a look at the json file option at a later date

dten commented 1 year ago

these are the svgs of the test outputs, would you like them committing?

percent ticks ticks_bytes ticks_ticks utf8 utf8_bytes utf8_ticks

codecov[bot] commented 11 months ago

Codecov Report

Patch coverage is 91.20% of modified lines.

Files Changed Coverage
src/collapse/mod.rs ø
src/collapse/ghcprof.rs 90.98%
src/collapse/guess.rs 100.00%

:loudspeaker: Thoughts on this report? Let us know!.

jonhoo commented 11 months ago

Oh, looks like you may need to merge from main too

dten commented 11 months ago

rebased

jonhoo commented 11 months ago

Oh, sorry, one very last thing — can you add an entry to CHANGELOG.md too? That way I can do a release right after merging!

dten commented 11 months ago

Message added to changelog

jonhoo commented 11 months ago

Released in 0.11.17 :tada: