This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bretthoerner
Recipients belopolsky, brett.cannon, bretthoerner, skip.montanaro
Date 2008-11-13.15:09:41
SpamBayes Score 2.3531092e-08
Marked as misclassified No
Message-id <>
In-reply-to <18715.40858.196198.259296@montanaro-dyndns-org.local>
On Wed, Nov 12, 2008 at 9:31 PM, Skip Montanaro <> wrote:
> I see the reference to Apple in your original post, but can't find anything
> related to dtrace & python starting from the URL you gave.  Do you have
> something more specific?

That isn't Python 3.0, that's what I guess they call Python "Apple
Version 30"?  Anyways, it's their Python 2.5.1 and their "patches"
against it are actually ed scripts, contained in fix/

That's where my patch comes from, it's just changing the .ed scripts
to a patch and applying it against 2.6

> At this point Jeff's code does a fair bit more than simply tracing the
> CALL_FUNCTION opcode but needs some work with the other CALL_FUNCTION_*
> opodes.  It also has some obmalloc tracing which I've not yet tested.  I
> would have thought Apple would more heavily instrument the interpreter than
> it appears they have.

Sun has released a patch against DTrace that probes more than just
function calls also.  At least, it provides line number and some other

I couldn't figure out why it broke the compile on OS X though, and
could only get it working on Solaris.

There's another problem (I think) with DTrace probes ... if the Apple
guys release Apple-Probe-Python.d and the Sun guys release
Sun-Probe-Python.d (just two scripts) and we setup our probes
differently, one or both will fail (because one may expect a probe for
foo while another expects a probe for bar).  Kind of sucks,
considering Sun was first and Apple chose to probe Python differently.
 Now we have to pick one or make a 3rd... I could be very mistaken
here, though.
Date User Action Args
2008-11-13 15:09:44bretthoernersetrecipients: + bretthoerner, skip.montanaro, brett.cannon, belopolsky
2008-11-13 15:09:43bretthoernerlinkissue4111 messages
2008-11-13 15:09:41bretthoernercreate