[project @ 1999-09-15 13:45:14 by simonmar]
authorsimonmar <unknown>
Wed, 15 Sep 1999 13:45:20 +0000 (13:45 +0000)
committersimonmar <unknown>
Wed, 15 Sep 1999 13:45:20 +0000 (13:45 +0000)
commit17315bf6c11c17ad38ca5a65d7e938ac32d07d8a
treee782707e7c85c0f4361fb1095aeda8494d7e29db
parent18e952cfcc7aab9d38d66e781183d5aadae38ff0
[project @ 1999-09-15 13:45:14 by simonmar]
Heap Profiling
--------------

This commit adds simple hp2ps-style heap profiling.  Just the '-h'
option is supported so far.

Heap profiles will show the top two cost centres on each cost centre
stack.

Time/Alloc profiles have been extended to aggregate the costs on a
per-cost-centre basis and show the table of highest consuming cost
centres before the full table of cost centre stacks.

Profiles work best if '-caf-all' is used, especially when using
one of the '-auto' flags.
14 files changed:
ghc/includes/Profiling.h
ghc/includes/StgProf.h
ghc/rts/DebugProf.c
ghc/rts/DebugProf.h
ghc/rts/GC.c
ghc/rts/PrimOps.hc
ghc/rts/ProfRts.h
ghc/rts/Profiling.c
ghc/rts/RtsFlags.c
ghc/rts/RtsFlags.h
ghc/rts/RtsStartup.c
ghc/rts/Stats.c
ghc/rts/Stats.h
ghc/rts/Storage.c