Visualizing profiling data with
The header art on the Haskell Tooling page is made using the GHC profiling output from the
haskell-fractal code on GitHub. We wrote about using that code to generate artwork here.
package, visualized with HTML using the
profiteur package on Hackage
Jasper Van der Jeugt is a prolific Haskeller and helps coordinate a Haskell hackathon in ZurichZurihac
each summer. Perhaps his most well-known package is
hakyllThe hakyll page on Hackage has a link to his extensive tutorials for using the library.
, a static site generator with extensive features and documentation, and we’ve found him to be a helpful and responsive package maintainer.
He gives a justification for writing his
profiteur package as part of his tutorial introductionProfiteur: a visualiser for Haskell GHC .prof files
to using the package, and this is where we first learned of it.
Working through that tutorial gives you a good idea of what it’s all about, but we decided to profile a program we were already using and see what the results were.
First we installed
profiteur, which can be done with
cabal install or
Jasper’s tutorial gives different instructions for use than we do here.
We already had compiled the
haskell-fractal program without profiling information, so we rebuilt it with the
stack flag to enable profiling for all the dependencies. From within the project directory:
$ stack build -- profile