Dear ghc-team,
I would like to do the following:
1) Utter some magic spell like ``{- COUNTAPPS f g h -}''
in my ghc-program.
2) Run my program with an RTS flag say
+RTS +countapps f g -countapps -RTS
3) Have my program output (on stderr) the number of
applications of the functions f and g.
I need this kind of functionality to measure performance.
Until now I had to hardwire the counting of function
applications into my program, thereby increasing the number
that was really needed (because I ``lost'' lazyness).
I would be entirely happy if I had to compile my
program for profiling. BTW: Is there a way to do this
with profiling as it is at the moment?
Yours,
Marc van Dongen
--
Marc van Dongen, CS Dept | phone: +353 21 4903578
University College Cork, NUIC | Fax: +353 21 4903113
College Road, Cork, Ireland | Email: [EMAIL PROTECTED]