
11 Jun
2009
11 Jun
'09
3:40 a.m.
Evan Klitzke
[...] Unfortunately, this doesn't seem to work; whenever the program terminates due to running out of heap space, the generated .prof file is empty.
Unless there's some specific problem with profiling in combination with threading, you can get heap profiling from a crashing program. Not what you wanted, but you might at least be able to see what is allocated. Previously, you'd have to edit the profiling output (.hp file) by hand to chop off the last and partial profiling record, but I think this might have been fixed in later GHC's. -k -- If I haven't seen further, it is by standing in the footprints of giants