Changes between Version 2 and Version 3 of Debugging/ProfilingGhc


Ignore:
Timestamp:
Dec 24, 2009 10:27:32 AM (4 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Debugging/ProfilingGhc

    v2 v3  
    99to your `build.mk` file.  This is more robust than trying things like `GhcStage2HcOpts += -prof` because there are several things to do: first we build the ghc library, then we build the ghc program, linked against the library. 
    1010 
    11 Once you've done this, you should be able to run GHC to generate time and space profiles. For exmaple: 
     11Once you've done this, you should be able to run GHC (stage 2) to generate time and space profiles. For example: 
    1212{{{ 
    13 ghc +RTS -p -RTS 
     13$(TOP)/inplace/bin/ghc-stage2 +RTS -p -RTS 
    1414}}} 
     15 
     16Note that this builds a profiled ''stage-2'' compiler.  In principle it's possible to build a profiled ''stage-1'' compiler, but the build system isn't set up to do that right now.  Notably, various libraries (eg Cabal) are built and installed by the bootstrap compiler before building GHC; these would need to be built and installed in a profiled way too.