Profiling question
Simon Marlow
simonmar@microsoft.com
Mon, 6 Jan 2003 14:29:11 -0000
> If you were using nhc98, then you could use the following:
>=20
> import NonStdProfile
>=20
> f ... =3D do ...
> profile "point A" actionA
> profile "point B" actionB
>=20
> The non-standard operation
> profile :: String -> a -> a
> places a labelled marker line on the profile graph at the time instant
> when the value is demanded.
>=20
> I don't know whether ghc has anything similar?
No, but that strikes me as rather a good idea. I'll have a go at
implementing it.
Cheers,
Simon