X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fprofiling.xml;h=00bbcdb8d4404e01c5b535be71cbf9e36cc26f37;hb=4d8c7c976104d2e39a1183967ec0f254a0fc0a47;hp=7d33ee82148a1ef874e71e521dd35da21fd537aa;hpb=73e0deb3da9b301d6650587c348f97a6e662215d;p=ghc-hetmet.git
diff --git a/docs/users_guide/profiling.xml b/docs/users_guide/profiling.xml
index 7d33ee8..00bbcdb 100644
--- a/docs/users_guide/profiling.xml
+++ b/docs/users_guide/profiling.xml
@@ -249,8 +249,8 @@ MAIN MAIN 0 0.0 0.0 100.0 100.0
Cost centres are just program annotations. When you say
to the compiler, it automatically
inserts a cost centre annotation around every top-level function
- in your program, but you are entirely free to add the cost
- centre annotations yourself.
+ not marked INLINE in your program, but you are entirely free to
+ add the cost centre annotations yourself.
The syntax of a cost centre annotation is
@@ -401,7 +401,9 @@ x = nfib 25
GHC will automatically add
_scc_ constructs for all
- top-level, exported functions.
+ top-level, exported functions not marked INLINE. If you
+ want a cost centre on an INLINE function, you have to add
+ it manually.
@@ -411,9 +413,11 @@ x = nfib 25
- All top-level functions,
- exported or not, will be automatically
- _scc_'d.
+ All top-level functions
+ not marked INLINE, exported or not, will be automatically
+ _scc_'d.
+ The functions marked INLINE must be given a cost centre
+ manually.
@@ -458,9 +462,10 @@ x = nfib 25
- or :
+ or or :
+ time profile
@@ -472,9 +477,24 @@ x = nfib 25
The option produces a more
detailed report containing the actual time and allocation
data as well. (Not used much.)
+
+ The option produces the most detailed
+ report containing all cost centres in addition to the actual time
+ and allocation data.
+
+
+ RTS
+ option
+
+ Sets the interval that the RTS clock ticks at, which is
+ also the sampling interval of the time and allocation profile.
+ The default is 0.02 second.
+
+
+
@@ -740,7 +760,8 @@ x = nfib 25
0.1 second). Fractions are allowed: for example
will get 5 samples per second.
This only affects heap profiling; time profiles are always
- sampled on a 1/50 second frequency.
+ sampled with the frequency of the RTS clock. See
+ for changing that.
@@ -1763,7 +1784,6 @@ Total bytes copied during GC: 190096