Skip Montanaro <s...@pobox.com> added the comment: 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. Added file: http://bugs.python.org/file12861/dtrace.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4111> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com