Tweak the tracing flags slightly, and clean up error handling and diagnostics
authorSimon Marlow <marlowsd@gmail.com>
Fri, 26 Feb 2010 11:06:08 +0000 (11:06 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 26 Feb 2010 11:06:08 +0000 (11:06 +0000)
commitcd6bd66faa4cb5ac5ae907bf7e1deab0dda4c5c4
tree591ea0cd41fce85f53cd360c7e80d6f18c5f5c63
parent91bfa780ddd229cff6c3d86a8f05e3898ef65e53
Tweak the tracing flags slightly, and clean up error handling and diagnostics

Tracing flags are now:

   -l[flags]  Log events in binary format to the file <program>.eventlog
   -v[flags]  Log events to stderr
              where [flags] can contain:
                 s    scheduler events
                 t    add time stamps (only useful with -v)

and there are more helpful error messages when using flags that are
only available in particular variants of the RTS:

 the flag -v requires the program to be built with -debug
 the flag -Ds requires the program to be built with -debug
 the flag -p requires the program to be built with -prof
 the flag -N requires the program to be built with -threaded
 the flag -v requires the program to be built with -debug

Also, I fixed the crash reported in #3874, with +RTS -ls -v.
rts/RtsFlags.c