[Python-Dev] DTRACE support
Jesus Cea
jcea at jcea.es
Fri Sep 6 17:21:06 CEST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/09/13 17:14, Guido van Rossum wrote:
> 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?
It is a patch you apply on stock Python and you get a new configure
option: "--with-dtrace". If you compile Python with that flag, you get
a python interpreter with dtrace probes on it.
> 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?
My plan is to (in the future) use that module to create new probes on
the fly, like
<http://chrisa.github.io/blog/2011/12/04/libusdt-runtime-dtrace-providers/>,
and to export functions to communicate data to dtrace scripts, if running.
That is, this module is currently a shell I plan to fill.
- --
Jesús Cea Avión _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
Twitter: @jcea _/_/ _/_/ _/_/_/_/_/
jabber / xmpp:jcea at 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/
iQCVAwUBUiny4plgi5GaxT1NAQLngQP/eFoQ3rdPy12nmw8pPPO/+/RYjlhIi67+
T0n1xBJbxIvpFpIRufB+tkCfLWdb7YZKcf3Nb4V6pVsOPdbd9s6RcVWNA9Ds5mNx
ISrO644CAIqRF5XgeeS5uhsODL1DrZTEfX0QBhGsU6lcqyOzSfRX2t9hRBMh3f5y
2dPMHNznJhs=
=dV5g
-----END PGP SIGNATURE-----
More information about the Python-Dev
mailing list