Add profiling support to GHCi
|Reported by:||SamB||Owned by:|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Rev(s):|
It would be nice if GHCi could be run with profiling on. In comment 13 of ticket #2197, simonmar said:
There's a fair bit of work to do, and it's not clear it's worth the effort. The byte code compiler and interpreter have to be modified to support the different closure representations and other conventions of the profiling build.
This would, of course, also allow profiling of GHC or Haddock dealing with Template Haskell code, as well as any ghc-api clients that somehow end up invoking the bytecode interpreter.