I've heard good things about DTRACE but never used it myself. Do I understand correctly that you have to build a separate Python executable with it turned on?
I noticed one odd thing in the patch: apparently the dtrace module only exists to have a flag that tells whether it is enabled. Can't that flag be added to the sys module? On Fri, Sep 6, 2013 at 8:08 AM, Jesus Cea <j...@jcea.es> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > As far as I know, Erlang, Ruby, PHP, Perl, etc., support Dtrace. > Python is embarrasingly missing from this list. > > Some examples: > > <http://crypt.codemancers.com/posts/2013-04-16-profile-ruby-apps-dtrace-part1/> > <http://www.phpdeveloper.org/news/18859> > <http://www.erlang.org/doc/apps/runtime_tools/DTRACE.html> > > I have spend a very long time on a patch for Dtrace support in most > platforms with dtrace available. Currently working under Solaris and > derivatives, and MacOS X. Last time I checked, it would crash FreeBSD > because bugs in the dtrace port, but that was a long time ago. > > I would like to push this to Python 3.4, and the window is going to be > closed soon, so I think this is the time to ask for opinions and > support here. > > Does Python-Dev have any opinion or interest in this project?. Should > I push for it? > > Some (not current) details: http://bugs.python.org/issue13405 > > DTrace is amazing: http://dtrace.org/blogs/ > > PS: I can't release this code as a PyPI project, because it mess with > the inner core of Python. > > - -- > Jesús Cea Avión _/_/ _/_/_/ _/_/_/ > j...@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ > Twitter: @jcea _/_/ _/_/ _/_/_/_/_/ > jabber / xmpp:j...@jabber.org _/_/ _/_/ _/_/ _/_/ _/_/ > "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ > "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ > "El amor es poner tu felicidad en la felicidad de otro" - Leibniz > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQCVAwUBUinv55lgi5GaxT1NAQIK7gP8DeaWxNVwNFa5PnfZe00Aay5l1rWzgj8d > CY0D3W+PAdPkBci9SYPmfv7ajXrQWo/ccANYIRaUdI/U9Zjq/od7eNemOFqyL7U6 > BrQpAUMySI6tMlL+gYEfQ8O47SManvTqoyNvOFAz9mVJute8IxKsbCIK/jiRHDXz > vWyG7YrYN1A= > =4E7+ > -----END PGP SIGNATURE----- > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (python.org/~guido) _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com