[Haskell-cafe] Re: #haskell works

Tim Chevalier catamorphism at gmail.com
Sat Dec 15 11:43:45 EST 2007


On 12/15/07, Peter Hercek <phercek at gmail.com> wrote:
> Tim Chevalier wrote:
> > Try the -Rghc-timing flag.
>
> Interesting, that one does not work in my program compiled with
>   ghc 6.8.1 (looks like ghc runtime does not consume it but passes
>   it to my haskell code). +RTS -tstderr works but its usability is
>   limited since it provides only elapsed time and not the process
>   cpu times.
>

Sorry, my mistake -- it's an RTS option, so:

./program +RTS -Rghc-timing -RTS

and I guess you have to compile with -prof.

Cheers,
Tim

-- 
Tim Chevalier * catamorphism.org * Often in error, never in doubt
"Live fast, love hard, and wear corrective lenses if you need them."
--Webb Wilder


More information about the Haskell-Cafe mailing list