auto cost centres for where decls

Simon Marlow simonmar at
Fri Nov 21 10:15:08 EST 2003

> I have a large function with a lot of local definitions I would like
> indepdent cost centres for, however, since the local definitions arn't
> top-level auto-all doesn't catch them. is there some short cut to
> declare a whole list of decls should have cost centres? 
> I was thinking something like
> foo = ... where {-# SCC "foo" #-}
>         baz = ...
>         bar = ...
> would cause baz and bar to have cost centres named "foo.baz" and
> "" 

That's a good idea, but we probably won't get around to it until we do
the next profiling overhaul.  So that we don't lose suggestions like
this, it's a good idea to add them to the feature request tracker, here:

(this is the "Request a Feature" link on GHC's homepage).


More information about the Glasgow-haskell-users mailing list