| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
remove this file, its contents have been moved into StgProf.h
|
|
|
|
| |
remove unused gunk.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- generalise the per-module initialisation stubs so that we use it
in normal (non-profiled) code too. The initialisation stubs are
now called '__init_<module>' rather than '_reg<module>'.
- Register foreign exported functions as stable pointers in the
initialisation code for the module. This fixes the foreign export
problems reported by several people.
- remove the concept of "module groups" from the profiling subsystem.
- change the profiling semantics slightly; it should be unnecessary
to use '-caf-all' to get reasonable profiles now.
|
|
|
|
|
|
|
|
|
|
|
| |
Change the behaviour of the cost-centre stack profiler for recursive
sccs. Before, we used to remove the old copy of the CC from the stack
and push the new one on. Now, we record back-edges in the graph when
a recursive scc is detected.
This should give saner-looking cost-centre stacks for heavily
recursive code. Indeed, it reduces the number of stacks in the
profile for some examples considerably.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
More profiling fixes. Profiles looking more reasonable, but for best
results add the -caf-all switch to GHC.
|
|
|
|
|
|
|
|
|
|
|
| |
Profiling fixes.
- top-level CAF CCSs now *append* themselves to the
current CCS when called.
- remove DICT stuff.
- fixes to the auto-scc annotating in the desugarer.
|
|
|
|
| |
Copyright police.
|
|
Move 4.01 onto the main trunk.
|