Hello,<div><br></div><div>I am happy to announce the availability of a little tool that I wrote while I was doing some Haskell profiling.  It converts GHC&#39;s heap-profiles into HTML, and renders them nicely using the flot library.  Its functionality is similar to `hp2ps`.  I wrote it because I find the HTML output easier to work with and, also, because it can cope with partial profiles, so one can refresh the profile while the program is running.  The tool is a very short Haskell program, so it should be quite easy to modify and improve (and there is a lot that can be improved in it! :-). </div>
<div><br></div><div>You can use the tool like this:</div><div><br></div><div>    hp2html my_profile.hp</div><div><br></div><div>This will generate a self-contained HTML file called `my_profile.html`.  I am attaching some screen-shots so that you can get an idea of what it looks like.</div>
<div><br></div><div>In the generated HTML, hovering over data points shows their labels in the top-right corner.  You can zoom into a region by selecting it.  To go back to the zoomed-out view, double-click anywhere on the picture.   Note that, by default, the tool does not stack data points on top-of each other like `hp2ps`.  This makes it easier to see the individual values for the different entries, but it makes it harder to see the total amount for the program.  To get the stacked view, use the radio button in the top left corner.</div>
<div><br></div><div>`hp2html` is available on Hackage:</div><div><br></div><div>    <a href="http://hackage.haskell.org/package/hp2html-0.1">http://hackage.haskell.org/package/hp2html-0.1</a></div><div><br></div><div>If you are interesting in improving the tool (please do!), the source repo is here:</div>
<div><br></div><div>    git clone git://<a href="http://github.com/yav/hp2html.git">github.com/yav/hp2html.git</a></div><div><br></div><div>I hope that you find it useful,</div><div>-Iavor</div>