From: simonmar Date: Tue, 30 Jan 2001 12:14:02 +0000 (+0000) Subject: [project @ 2001-01-30 12:14:02 by simonmar] X-Git-Tag: Approximately_9120_patches~2770 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8bfb355bddc67ed583e141d9256d8bc7f6a671bc;p=ghc-hetmet.git [project @ 2001-01-30 12:14:02 by simonmar] update documentation to reflect change from _scc_ to {-# SCC ".." #-} --- diff --git a/ghc/docs/users_guide/profiling.sgml b/ghc/docs/users_guide/profiling.sgml index a2c0b4b..5929428 100644 --- a/ghc/docs/users_guide/profiling.sgml +++ b/ghc/docs/users_guide/profiling.sgml @@ -256,14 +256,14 @@ MAIN MAIN 0 0.0 0.0 100.0 100.0 The syntax of a cost centre annotation is - _scc_ "name" <expression> + {-# SCC "name" #-} <expression> where "name" is an aribrary string, that will become the name of your cost centre as it appears in the profiling output, and <expression> is any Haskell - expression. An _scc_ annotation extends as + expression. An SCC annotation extends as far to the right as possible when parsing. @@ -279,14 +279,14 @@ MAIN MAIN 0 0.0 0.0 100.0 100.0 If the expression is part of the one-off costs of evaluating the enclosing top-level definition, then costs are attributed to - the stack of lexically enclosing _scc_ + the stack of lexically enclosing SCC annotations on top of the special CAF cost-centre. Otherwise, costs are attributed to the stack of - lexically-enclosing _scc_ annotations, + lexically-enclosing SCC annotations, appended to the cost-centre stack in effect at the call site of the current top-level definition The call-site is just the place