[nhc-users] Space Profiling

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue May 10 08:33:02 EDT 2005


Benjamin,

> $ ./strict +RTS -p -i25kb -RTS
> 500500
> 
> $ hp2graph strict.hp
> Illegal token JOB at 69
> Aborted

I believe the problem here is that "producer" profiling (the -p runtime
option) seems to be slightly broken at the moment.  I discovered this a
few days ago myself.  For instance, in your output .hp file, you see

> SAMPLE 1     0.00
>   	356
>   <binary_int_op>	8
>   <APPLY>	80
>   <Main>	8
>   Builtin.primIntFromInteger	8
>   Prelude.primIntegerAdd	8
> ;

but the first line following "SAMPLE" has no symbol name, just a count!
(356).  For some reason, the first producer symbol is being rendered as
a blank, which confuses the parser in hp2graph.

> What am I doing wrong, some option perhaps?

Until we fix this bug, I suggest that you avoid producer profiles and
use only the other kinds - construction (-c), retainer (-r) and
biographical (-b).

Regards,
    Malcolm


More information about the Nhc-users mailing list