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!
Richard

On Feb 18, 2021, at 10:53 AM, Martin Heuschober <epsilonhalbe@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.