Profiling and class methods

Denis Bueno dbueno at gmail.com
Tue Dec 4 23:02:07 EST 2007


On Dec 4, 2007 10:45 PM, Ravi Nanavati <ravi at bluespec.com> wrote:
> One of the smaller nits I noticed when looking at profiles generated
> by 6.8.1 (using -prof -auto-all) is that class methods show up as cost
> centers named something like "$f5". I can look at the call stack and
> figure out that $f5 is probably the call to a particular class method
> in a particular location, but I was wondering what it might take to
> make that more user-friendly (I'd want to see the class name, method
> name and the instance being used in some format, ideally). Is that
> information readily available and it is just a matter of making
> -auto-all smarter, or is there a reason this would be tricky?

You can know for sure which method in a class $f5 denotes using
-ddump-simpl (and grep '$f5' on the output).  Also note that this
issue is currently filed as a bug.

    http://hackage.haskell.org/trac/ghc/ticket/1641

-- 
                              Denis


More information about the Glasgow-haskell-users mailing list