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 skip.montanaro
Recipients belopolsky, bretthoerner, laca, rhettinger, robert.kern, ronaldoussoren, skip.montanaro, twleung
Date 2009-01-25.22:00:06
SpamBayes Score 4.9960036e-15
Marked as misclassified No
Message-id <1232920814.99.0.846885162975.issue4111@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch against the current trunk (2.7) which compiles on my Mac.  It
adds a --with-dtrace configure option.  The code checks to see if the -G
option is understood by the dtrace command.  If so, dtrace support is added
Sun-style.  If not we do things Apple's way.

The existing test cases pass on Apple except for one case in test_sys which
tries to confirm the size of a frame object.  I added an #ifdef WITH_DTRACE
around the extra slot but there is no way of telling from Python code that
this extra slot is there.  That would have to somehow be exposed to the
Python programmer so the test can be adjusted.  All tests pass when
--with-dtrace is omitted.  I have not yet tried this on Solaris.  I will try
to get to it this week if someone doesn't beat me to it.

There are as yet no new dtrace test cases so I can't confirm that the added
dtrace support actually works.  There are also no documentation updates.
Unlike most compile options this adds a significant new feature to the
runtime environment so some documentation changes are probably called for.
History
Date User Action Args
2009-01-25 22:00:15skip.montanarosetrecipients: + skip.montanaro, rhettinger, ronaldoussoren, belopolsky, bretthoerner, laca, twleung, robert.kern
2009-01-25 22:00:14skip.montanarosetmessageid: <1232920814.99.0.846885162975.issue4111@psf.upfronthosting.co.za>
2009-01-25 22:00:13skip.montanarolinkissue4111 messages
2009-01-25 22:00:12skip.montanarocreate