Re: Profiling and analysing space usage

2005-09-01 Thread Ketil Malde
Alistair Bayley <[EMAIL PROTECTED]> writes: I'm no expert, but since nobody else seems to have answered: > - is my analysis of the space usage correct i.e. allocation in the > loop function is very short-lived and nothing to worry about? IME, that would be the typical case. > - is there anyth

Re: hat, ghc

2005-09-01 Thread Frederik Eaton
On Thu, Sep 01, 2005 at 04:46:38PM +0100, Malcolm Wallace wrote: > Frederik Eaton <[EMAIL PROTECTED]> writes: > > > Is there a way to use Hat with GHC, without 'hmake'? > > You could transform each module in your project individually with > hat-trans, before running ghc --make over the traced ver

Re: hat, ghc

2005-09-01 Thread Malcolm Wallace
Frederik Eaton <[EMAIL PROTECTED]> writes: > Is there a way to use Hat with GHC, without 'hmake'? You could transform each module in your project individually with hat-trans, before running ghc --make over the traced version. Unfortunately, this means you will need to find some other way to do th

Re: hat, ghc

2005-09-01 Thread Olaf Chitil
Frederik Eaton wrote: Is there a way to use Hat with GHC, without 'hmake'? Sure, you can make all calls to hat-trans and ghc directly yourself, but that is rather cumbersome. You cannot use anything like ghc --make, because ghc doesn't know about Hat. The Hat Tutorial shows 'hmake' being u

hat, ghc

2005-09-01 Thread Frederik Eaton
Is there a way to use Hat with GHC, without 'hmake'? The Hat Tutorial shows 'hmake' being used, but 'hmake' doesn't work for me. The problem is that 'hmake' seems to be looking for 'ghc' based on something other than PATH: $ ghc --make pointtracker.hs Chasing modules from: pointtracker.hs Compi

Profiling and analysing space usage

2005-09-01 Thread Alistair Bayley
Hello all. Below is a (typically pointless) program, which is a small slice from a larger one I'm profiling. I'm interested in getting the memory usage as small as possible. The loop function (and its analogue in the real program) contributes significantly to the allocation stats. AFAICT, this wou