It would be great if the main Python distribution supported DTrace on
(Open)Solaris / FreeBSD / OS X.
I've attached a patch against 2.6 that instruments function calls. It's
from the ed scripts included in Apple's Python distribution:
http://developer.apple.com/opensource/index.html (PSF License)
It is imperfect because I wasn't sure how to do the equivalent of IFDEF
in the Makefile.pre.in, as you can see this patch will make ceval.o
depend on pydtrace.h, which depends on having a local `dtrace` command.
The rest of the patch properly uses IFDEFs. |