X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fprofiling.xml;fp=docs%2Fusers_guide%2Fprofiling.xml;h=fe835afc9b2bfd75e25b9de4cd8adce4565f8019;hb=7be227dcf505a16b1b63a9fe3cbea87127b70b52;hp=5fb53d038e96f81e463c6fde58b411889e385fb9;hpb=00022894bbb2dfa33fd213eedbac0f28b4c4b7b4;p=ghc-hetmet.git
diff --git a/docs/users_guide/profiling.xml b/docs/users_guide/profiling.xml
index 5fb53d0..fe835af 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.