At 03:12 -0800 2000/03/10, Andy Gill wrote:
>I know its a difficult topic, but we can't even understand how
>our *simple* programs are using the resources we are giving it
>(stack and heap)
>
>Perhaps on of the various Haskell debugging projects will have
>a viewer that allows you to watch the stack usage?
I found the heap profiler, used in connection with hpps (and ps2dvi)
excellent in order to understand how the heap is allocated.
One should perhaps add stack profiler and time profiler modes to Hugs as well.
-- Even if the stack can grow dynamically, it will be slow if that happens
to often. So one should still be able to set initial stack size and size of
enlargements.
How are stack enlargements on STG done, specifically is it linear, the same
increment all the time, or exponentially, say a doubling whenever free
stack space becomes short?
Hans Aberg