Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/1469f1eb7817fbc46b17e994498450a9a6b12ea7 >--------------------------------------------------------------- commit 1469f1eb7817fbc46b17e994498450a9a6b12ea7 Author: Simon Marlow <[email protected]> Date: Fri Dec 2 13:09:14 2011 +0000 More changes aimed at improving call stacks. - Attach a SrcSpan to every CostCentre. This had the side effect that CostCentres that used to be merged because they had the same name are now considered distinct; so I had to add a Unique to CostCentre to give them distinct object-code symbols. - New flag: -fprof-auto-calls. This flag adds an automatic SCC to every call site (application, to be precise). This is typically more useful for call stacks than annotating whole functions. Various tidy-ups at the same time: removed unused NoCostCentre constructor, and refactored a bit in Coverage.lhs. The call stack we get from traceStack now looks like this: Stack trace: Main.CAF (<entire-module>) Main.main.xs (callstack002.hs:18:12-24) Main.map (callstack002.hs:13:12-16) Main.map.go (callstack002.hs:15:21-34) Main.map.go (callstack002.hs:15:21-23) Main.f (callstack002.hs:10:7-43) compiler/basicTypes/Unique.lhs | 10 ++- compiler/codeGen/CgProf.hs | 6 ++- compiler/codeGen/StgCmmProf.hs | 12 +++- compiler/deSugar/Coverage.lhs | 103 ++++++++++++++++++++++------------ compiler/deSugar/DsExpr.lhs | 5 +- compiler/iface/BinIface.hs | 23 +++++--- compiler/main/DynFlags.hs | 2 + compiler/profiling/CostCentre.lhs | 91 ++++++++++++++++-------------- compiler/profiling/SCCfinal.lhs | 8 ++- docs/users_guide/ghci.xml | 3 +- docs/users_guide/profiling.xml | 18 ++++++ docs/users_guide/runtime_control.xml | 8 ++- includes/rts/prof/CCS.h | 4 +- rts/Profiling.c | 14 ++-- 14 files changed, 198 insertions(+), 109 deletions(-) Diff suppressed because of size. To see it, use: git show 1469f1eb7817fbc46b17e994498450a9a6b12ea7 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
