Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : ghc-7.4
http://hackage.haskell.org/trac/ghc/changeset/e7bb988089e35d38f661c1527696bf72e18e20db >--------------------------------------------------------------- commit e7bb988089e35d38f661c1527696bf72e18e20db Author: Edward Z. Yang <[email protected]> Date: Tue Jan 17 23:55:53 2012 -0500 Document -T RTS flag in manual. Signed-off-by: Edward Z. Yang <[email protected]> >--------------------------------------------------------------- docs/users_guide/runtime_control.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/docs/users_guide/runtime_control.xml b/docs/users_guide/runtime_control.xml index 7b2b469..5870092 100644 --- a/docs/users_guide/runtime_control.xml +++ b/docs/users_guide/runtime_control.xml @@ -730,6 +730,10 @@ $ ./prog -f +RTS -H32m -S -RTS -h foo bar <varlistentry> <term> + <option>-T</option> + <indexterm><primary><option>-T</option></primary><secondary>RTS option</secondary></indexterm> + </term> + <term> <option>-t</option><optional><replaceable>file</replaceable></optional> <indexterm><primary><option>-t</option></primary><secondary>RTS option</secondary></indexterm> </term> @@ -751,6 +755,7 @@ $ ./prog -f +RTS -H32m -S -RTS -h foo bar garbage collector, the amount of memory allocated, the maximum size of the heap, and so on. The three variants give different levels of detail: + <option>-T</option> collects the data but produces no output <option>-t</option> produces a single line of output in the same format as GHC's <option>-Rghc-timing</option> option, <option>-s</option> produces a more detailed summary at the @@ -764,6 +769,12 @@ $ ./prog -f +RTS -H32m -S -RTS -h foo bar is sent to <constant>stderr</constant>.</para> <para> + If you use the <literal>-T</literal> flag then, you should + access the statistics using + <ulink url="&libraryBaseLocation;/GHC-Stats.html">GHC.Stats</ulink>. + </para> + + <para> If you use the <literal>-t</literal> flag then, when your program finishes, you will see something like this: </para> _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
