profiling cabal libraries

How do I profile cabal libraries? 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. What am I doing wrong? -Tom

2010/10/19 Tom Hawkins
How do I profile cabal libraries?
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.
What am I doing wrong?
Maybe use -auto-all for compiling the library itself too? Cheers, Thu

On Tue, Oct 19, 2010 at 8:42 AM, Tom Hawkins
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
participants (3)
-
Bryan O'Sullivan
-
Tom Hawkins
-
Vo Minh Thu