On 12/15/07, Peter Hercek <[EMAIL PROTECTED]> 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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to