auto cost centres for where decls

Simon Marlow simonmar at microsoft.com
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
> "foo.bar" 

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:

  http://sourceforge.net/tracker/?group_id=8032&atid=358032

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

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list