1N/APython - DTracing Python
1N/A
1N/A These scripts trace the Python programming language, and require a version
1N/A of Python which has been built with DTrace probes.
1N/A
1N/A The Python DTrace provider was originally written by John Levon, and
1N/A was integrated into Solaris Nevada in build 65. If you are on a different
1N/A OS with DTrace and would like to use these scripts, you could download
1N/A Python and the Python DTrace provider patch listed in the comments here,
1N/A
2N/A http://blogs.oracle.com/levon/entry/python_and_dtrace_in_build
1N/A
1N/A You will need patch and build Python for these probes to work.
1N/A Or, check if a pre-built package is available someone on opensolaris.org.
1N/A
1N/A Since the DTrace Python provider may be developed further, there is a chance
1N/A that it has changed slightly by the time you are reading this, causing
1N/A these scripts to either break or behave oddly. Firstly, check for newer
1N/A versions of the DTraceToolkit; if it hasn't been updated and you need
1N/A to use these scripts immediately, then updating them shouldn't take
1N/A too long. The following was the state of the provider when these scripts
1N/A were written - check for changes and update the scripts accordingly,
1N/A
1N/A provider python {
1N/A probe function-entry(file, subroutine, lineno)
1N/A probe function-return(file, subroutine, lineno)
1N/A };
1N/A