threepenny-gui icon indicating copy to clipboard operation
threepenny-gui copied to clipboard

Application request: Haskell heap profile viewer

Open HeinrichApfelmus opened this issue 9 years ago • 2 comments

It would be really nice if we could port the hp2any-manager application for viewing Haskell heap profiles to threepenny-gui. This way, people don't have to install GTK (or resort to the old but good hp2ps utility).

Of course, hp2any could always just output a HTML file with interactive JavaScript…

HeinrichApfelmus avatar May 03 '15 11:05 HeinrichApfelmus

It appears that Edward Z. Yang has written an interactive heap viewer using d3.js. The heap viewer is available as an online service, but I think it should be possible to remove its server parts and use Threepenny's JavaScript FFI to make a local application instead. (This can be done by using the Foreign.JavaScipt module alone, there is no need to use the other parts.)

Of course, the heap viewer could also merged into the hp2any tool instead...

HeinrichApfelmus avatar Dec 09 '16 00:12 HeinrichApfelmus

I have implemented a heap viewer which creates a static html with an interactive heap profile using vega-lite. Perhaps this is of interest to you? The project isn't quite finished yet but should be usable.

https://github.com/mpickering/hp2pretty

mpickering avatar Jun 18 '19 11:06 mpickering