[darcs-users] internal error

Gour gour at mail.inet.hr
Sat Nov 29 15:40:43 UTC 2003


ketil at ii.uib.no (ketil at ii.uib.no) wrote:

> If you build darcs with profiling (add -prof to the GHC command line
> for *all* modules), you can run darcs with options
> 
>    +RTS -h -RTS
> 
> to get memory profiling output.  This should tell you which function
> is consuming all the memory.  For a variation, use 
> 
>    +RTS -hd -RTS
> 
> which gives you the type of data (usually the constructor) filling up
> the heap.  This is often helpful for me when tracking down excessive
> memory use (which more often than not is caused by too much, and less
> often, too little, laziness)


Thanks. I learnt something new, but unfortunately newly compiled darcs
segfaults when in such a way. I'll try to increase heap size.

Sincerely,
Gour

-- 
Gour
gour at mail.inet.hr
Registered Linux User #278493





More information about the darcs-users mailing list