[Haskell-cafe] profiling cabal libraries

Bryan O'Sullivan bos at serpentine.com
Tue Oct 19 12:31:14 EDT 2010


On Tue, Oct 19, 2010 at 8:42 AM, Tom Hawkins <tomahawkins at gmail.com> wrote:

>
> I "cabal install -p" a local package I am testing, and I compile a
> test of the library using "-prof -auto-all".  But the profiling report
> only lists a CAF entry for the library, but does not detail any of the
> library's top level functions.
>

That's expected and normal. You either have to manually add SCC annotations
to code, or if you want the usual automated ones, add the following to your
.cabal file:

ghc-prof-options: -auto-all
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101019/9ce9a3d2/attachment.html


More information about the Haskell-Cafe mailing list