Has something about -prof -auto-all changed in GHC 7?

I've been trying to use a library compiled with profiling in 7.0.1rc1, where I'm compiling the library with -auto-all, but I'm getting output when I run an app linked against the library that contains almost no information from inside the library: basically just a single cost centre from the app itself shows up, and almost nothing inside the library. I've verified via "cabal build -v" that the library is indeed being built with -prof -auto-all.

On 12/10/2010 06:22, Bryan O'Sullivan wrote:
I've been trying to use a library compiled with profiling in 7.0.1rc1, where I'm compiling the library with -auto-all, but I'm getting output when I run an app linked against the library that contains almost no information from inside the library: basically just a single cost centre from the app itself shows up, and almost nothing inside the library. I've verified via "cabal build -v" that the library is indeed being built with -prof -auto-all.
Nothing has changed in this area that I'm aware of. Could you give more details? Cheers, Simon

On Tue, Oct 12, 2010 at 2:08 AM, Simon Marlow
Nothing has changed in this area that I'm aware of. Could you give more details?
Sure. I'm building darcs HEAD of the text library using both 6.12.3 and 7: darcs get http://code.haskell.org/text cd text cabal install --enable-library-profiling It gets built with -prof -auto-all (see ghc-prof-opts in text.cabal). If you then go into the tests/benchmarks directory, you can build and run the Equality benchmark: ghc -prof -auto-all -O --make Equality (add -rtsopts if using 7) Grab this sample file: http://www.facebook.com/jobs_puzzles/twl06.txt Then run Equality on it: time ./Equality text twl06.txt +RTS -P I've attached samples of the .prof files generated by each version of GHC so you can see the rather dramatic difference. To my eye, it looks like something is quite wrong with the version from 7.

On Mon, Oct 18, 2010 at 10:05:02PM -0700, Bryan O'Sullivan wrote:
On Tue, Oct 12, 2010 at 2:08 AM, Simon Marlow
wrote: Nothing has changed in this area that I'm aware of. Could you give more details?
Sure. I'm building darcs HEAD of the text library using both 6.12.3 and 7:
I've attached samples of the .prof files generated by each version of GHC so you can see the rather dramatic difference. To my eye, it looks like something is quite wrong with the version from 7.
There was a bug where functions with monotypes were not getting SCCs;
fixed by:
Mon Oct 18 16:39:57 BST 2010 Ian Lynagh
participants (3)
-
Bryan O'Sullivan
-
Ian Lynagh
-
Simon Marlow