AW: Heap profiling in GHC broken?

I have no idea how to set up cvs under windows to get things from a non-local repository, but anyway, profiling worked on the macintosh. I spent the whole weekend plus monday to find the space leak, but eventually I did. Heap Profiling was very helpful there. Unfortunately, space leaks are barely mentioned in the Haskell books/tutorials, but they are a real burden if you want to run programs for larger problems. A tutorial on this by one of the experts would be very welcome. :-) Thanks, Markus
-----Ursprüngliche Nachricht----- Von: haskell-cafe-bounces@haskell.org [mailto:haskell-cafe-bounces@haskell.org] Im Auftrag von David Roundy Gesendet: Donnerstag, 30. Oktober 2003 13:48 An: haskell-cafe@haskell.org Betreff: Re: Heap profiling in GHC broken?
On Wed, Oct 29, 2003 at 05:43:23PM +0100, Markus.Schnell@infineon.com wrote:
When I tried to profile my program in search for space leaks, it core dumped on me (actually on Win2000/Cygwin). I'm using ghc 6.0.1. Does anybody know what could be the problem?
(To be more precise: any +RTS -h_ options make problems, +RTS -p works fine. I get a message meaning the equivalent of "statement in '0x0058db43' points to memory in '0xfffffffc'. Could not read.")
I believe this bug is fixed in CVS, so you could get it there or wait for 6.2. (I didn't fix it, I just reported it.) -- David Roundy http://www.abridgegame.org/darcs _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

A tutorial on this by one of the experts would be very welcome.
The people at York University have written some great papers on this topic. I especially remember one presented at the Glasgow Functional Programming workshop by Colin Runciman about 8-10 years ago. In the draft proceedings or the presentation, the title was something to do with the tail and the leg of the dog but I don't recall the title of the final paper. -- Alastair Reid

A tutorial on this by one of the experts would be very welcome.
The people at York University have written some great papers on this topic.
The canonical tutorial paper is in the Advanced Functional Programming Summer Schools series: C. Runciman and N. Ro"jemo. Heap profiling for space efficiency. In J. Launchbury, E. Meijer, and T. Sheard, editors, 2nd Intl. School on Advanced Functional Programming, pages 159-183, Olympia, WA, August 1996. Springer LNCS Vol. 1129. Other relevant papers can be found amongst those listed for the York programming languages group at: http://www.cs.york.ac.uk/plasma/publications/ Regards, Malcolm
participants (3)
-
Alastair Reid
-
Malcolm Wallace
-
Markus.Schnell@infineon.com