Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/598109eb0cc2271c33e23b4ddb12123991273f61 >--------------------------------------------------------------- commit 598109eb0cc2271c33e23b4ddb12123991273f61 Author: Mikolaj <[email protected]> Date: Fri Mar 9 14:22:06 2012 +0100 Fix the timestamps in GC_START and GC_END events on the GC-initiating cap There was a discrepancy between GC times reported in +RTS -s and the timestamps of GC_START and GC_END events on the cap, on which +RTS -s stats for the given GC are based. This is fixed by posting the events with exactly the same timestamp as generated for the stat calculation. The calls posting the events are moved too, so that the events are emitted close to the time instant they claim to be emitted at. The GC_STATS_GHC was moved, too, ensuring it's emitted before the moved GC_END on all caps, which simplifies tools code. rts/Schedule.c | 2 -- rts/Stats.c | 45 +++++++++++++++++++++++++++++++-------------- rts/Stats.h | 2 +- rts/Trace.c | 13 +++++++++++++ rts/Trace.h | 25 +++++++++++++++++++++++++ rts/eventlog/EventLog.c | 21 ++++++++++++++++++++- rts/eventlog/EventLog.h | 3 +++ rts/sm/GC.c | 2 +- 8 files changed, 94 insertions(+), 19 deletions(-) Diff suppressed because of size. To see it, use: git show 598109eb0cc2271c33e23b4ddb12123991273f61 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
