Alan Burlison wrote: > Rafael Garcia-Suarez wrote: > > > Maybe are you aware of > > http://blogs.sun.com/roller/page/alanbur?entry=dtrace_and_perl already ? > > As Rafael says, I've already done some work on this, documented at the > link above. My intention is to put some generic macros into perl at the > appropriate places. By default they woud be empty, in the case of > Solaris you will be able to instantiate them as DTrace probes, on other > platforms they could be whatever tracing system the platform supports.
I think it's worth investigating doing it in a module, providing an alternate runloop or only changing the pp functions for entersub and leavesub.