Unify event logging and debug tracing.
authorSimon Marlow <marlowsd@gmail.com>
Sat, 29 Aug 2009 09:47:27 +0000 (09:47 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Sat, 29 Aug 2009 09:47:27 +0000 (09:47 +0000)
commita5288c551349a0adab0d931a429b10a096d9444d
tree245dd2dfd2b4e23f3fc8ae474b709289b60e5f15
parentc51229b2bfd3b1a61d3966db894210ef848f0a6d
Unify event logging and debug tracing.

  - tracing facilities are now enabled with -DTRACING, and -DDEBUG
    additionally enables debug-tracing.  -DEVENTLOG has been
    removed.

  - -debug now implies -eventlog

  - events can be printed to stderr instead of being sent to the
    binary .eventlog file by adding +RTS -v (which is implied by the
    +RTS -Dx options).

  - -Dx debug messages can be sent to the binary .eventlog file
    by adding +RTS -l.  This should help debugging by reducing
    the impact of debug tracing on execution time.

  - Various debug messages that duplicated the information in events
    have been removed.
19 files changed:
compiler/main/StaticFlags.hs
includes/rts/Config.h
includes/rts/EventLogFormat.h
includes/rts/Flags.h
mk/config.mk.in
rts/Capability.c
rts/Printer.c
rts/Printer.h
rts/RaiseAsync.c
rts/RtsFlags.c
rts/RtsStartup.c
rts/Schedule.c
rts/Schedule.h
rts/Sparks.c
rts/Threads.c
rts/Trace.c
rts/Trace.h
rts/eventlog/EventLog.c
rts/eventlog/EventLog.h