Re: profiling for stack usage

2003-08-15 Thread Alastair Reid
> I'm currently in a situation where my program runs easily out of > stack. Depending on the input, stack usage often exceeds 10Mb. I have better than 75% success locating the source of these bugs with the following command: grep '+1' *.hs *.lhs Reason: Lazy arithmetic can easily cause you

RE: profiling for stack usage

2003-08-15 Thread Simon Marlow
> I'm currently in a situation where my program runs easily out of > stack. Depending on the input, stack usage often exceeds 10Mb. > > 1. Is there a way to profile stack usage, so that I can identify the > culprit and deal with the problem at the root? Normal (time) > profiling tells me how m

a library for reifying values in GHC

2003-08-15 Thread Bernard James POPE
Hi all, During my work on buddha (haskell debugger) I've had the need to print arbitrary values from a running program. Along the way I've written some code that works with GHC to do this. Just in case there are others who might benefit from this, I've ripped some code out of buddha and made it

profiling for stack usage

2003-08-15 Thread Ketil Z. Malde
Hi again, I'm currently in a situation where my program runs easily out of stack. Depending on the input, stack usage often exceeds 10Mb. 1. Is there a way to profile stack usage, so that I can identify the culprit and deal with the problem at the root? Normal (time) profiling tells me how man