Multi-Run RTS Flag Request

Simon Marlow
Mon, 16 Jun 2003 09:42:42 +0100

> Something that I would find useful for profiling would be an RTS flag=20
> that made the program run several times. That way I can get more=20
> accurate numbers in the profiling report.
> At the moment I usually rename main to main', and set up a main that=20
> runs main' 100 times.

You can write your own main() (in C) which does this fairly easily.  See
the User's Guide for details on using your own main().  You could even
put your special main() into a package, so you could write

  ghc -package multi-run ...