diff options
author | Ian Lynagh <igloo@earth.li> | 2007-08-16 18:32:59 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-08-16 18:32:59 +0000 |
commit | 0dfcd5776f3ef89ceaafef6c4730ddac759e3716 (patch) | |
tree | 3c141e70877e3b3e1494b2621f102afcbbbe5cce /docs | |
parent | 0ee85183fac8129a3c1b890849f32f30fd3940ec (diff) | |
download | haskell-0dfcd5776f3ef89ceaafef6c4730ddac759e3716.tar.gz |
Document +RTS --info, and make it a Read'able Haskell value
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/runtime_control.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/users_guide/runtime_control.xml b/docs/users_guide/runtime_control.xml index 95365bacce..776b65f9a1 100644 --- a/docs/users_guide/runtime_control.xml +++ b/docs/users_guide/runtime_control.xml @@ -661,6 +661,29 @@ char *ghc_rts_opts = "-H128m -K1m"; <filename>ghc/compiler/parser/hschooks.c</filename> in a GHC source tree.</para> </sect2> + + <sect2> + <title>Getting information about the RTS</title> + + <indexterm><primary>RTS</primary></indexterm> + + <para>It is possible to ask the RTS to give some information about + itself. To do this, use the <option>--info</option> flag, e.g.</para> +<screen> +$ ./a.out +RTS --info + [("GHC RTS", "Yes") + ,("GHC version", "6.7") + ,("RTS way", "rts_p") + ,("Host platform", "x86_64-unknown-linux") + ,("Build platform", "x86_64-unknown-linux") + ,("Target platform", "x86_64-unknown-linux") + ,("Compiler unregisterised", "NO") + ,("Tables next to code", "YES") + ] +</screen> + <para>The information is formatted such that it can be read as a + of type <literal>[(String, String)]</literal>.</para> + </sect2> </sect1> <!-- Emacs stuff: |