Tue Mar 17 09:42:14 PDT 2009 Simon Marlow <[email protected]>
* Add fast event logging
Ignore-this: c470164a5e66dca06fddc2fe172025de
Generate binary log files from the RTS containing a log of runtime
events with timestamps. The log file can be visualised in various
ways, for investigating runtime behaviour and debugging performance
problems. See for example the forthcoming ThreadScope viewer.
New GHC option:
-eventlog (link-time option) Enables event logging.
+RTS -l (runtime option) Generates <prog>.eventlog with
the binary event information.
This replaces some of the tracing machinery we already had in the RTS:
e.g. +RTS -vg for GC tracing (we should do this using the new event
logging instead).
Event logging has almost no runtime cost when it isn't enabled, though
in the future we might add more fine-grained events and this might
change; hence having a link-time option and compiling a separate
version of the RTS for event logging. There's a small runtime cost
for enabling event-logging, for most programs it shouldn't make much
difference.
(Todo: docs)
M ./compiler/main/StaticFlagParser.hs +1
M ./compiler/main/StaticFlags.hs +6
A ./includes/EventLogFormat.h
M ./includes/RtsFlags.h -7 +11
M ./mk/config.mk.in -2 +18
M ./rts/Capability.c -10 +10
M ./rts/Makefile -3 +4
M ./rts/RaiseAsync.c +1
M ./rts/RtsFlags.c -10 +36
M ./rts/RtsStartup.c +16
M ./rts/Schedule.c -2 +16
M ./rts/Schedule.h -2 +3
M ./rts/Threads.c -2 +6
M ./rts/Trace.c -59 +7
M ./rts/Trace.h -12 +10
A ./rts/eventlog/
A ./rts/eventlog/EventLog.c
A ./rts/eventlog/EventLog.h
M ./rts/sm/GC.c -8 +8
M ./rts/sm/GCUtils.c -1 +1
M ./rts/sm/Sweep.c -1 +1
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090317164214-12142-a057b99429bbd2401f6c40ce347cbbcce31e1f8c.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc