- Add
profiling: True
to the cabal.project file ofhaskell-ide-engine
cabal new-build hie
- (IMPORTANT) Add
profiling: True
to thecabal.project
file of the project being opened by hie - Make a wrapper script somewhere which calls the
hie
you built in step 2 with+RTS -hc -l-au
- Modify your editor settings to call this wrapper script instead of looking for
hie
on the path - Try using
h-i-e
as normal and then you can either send me the*.eventlog
which was created or process it yourself usingeventlog2html
So +RTS -hc -l-au
says, do cost centre profiling and create an eventlog which has the profiling samples in, my tool eventlog2html
can turn that into a profile graph
and I have a branch which renders cost centre profiles in an even nicer way
Other modes which might be of interest, -hd