[Haskell-cafe] Profiling analyzing ghc compilation

Richard Eisenberg rae at richarde.dev
Thu Feb 18 19:26:34 UTC 2021

Hi Martin,

Having seen this before, I knew there had to be a compiler option for this... and checking the Debugging the Compiler section of the manual surfaces -dshow-passes, which should do exactly what you're asking for.

I hope this helps!

> On Feb 18, 2021, at 10:53 AM, Martin Heuschober <epsilonhalbe at gmail.com> wrote:
> Hi,
> Is there a way to profile (time/space) GHC compilation itself, I'd be interested in what compilation steps in compiling my project take long and how much RAM it uses/why it uses so much RAM, so I can identify what to rewrite, remove, and split to get a leaner build.
> Thanks,
> Martin
> PS.: I hope this is the right place to ask this.
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210218/fbfcf54a/attachment.html>

More information about the Haskell-Cafe mailing list