[Haskell-cafe] Finding Memory Leaks

Donald Bruce Stewart dons at cse.unsw.edu.au
Thu Nov 2 22:28:46 EST 2006


mattcbro:
> 
> 
> 
> Jason Dagit-2 wrote:
> > 
> > 
> > 
> > Do any memory leaks show up if you compile with -caf-all when you profile?
> > 
> > Jason
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
> > 
> > 
> 
> It doesn't seem to make any difference, although I do not know what this
> flag does.
> I compiled the code using
> ghc -fglasgow-exts -fffi -prof -auto -caf-all -I. --make  leaky.hs cleaky.o
> 
> and did not see the steady ramp up in memory that one sees with the windows
> xp performance tool.

Hmm, are you missing a -O ? Does that help at all?

-- Don


More information about the Haskell-Cafe mailing list