Home | History | Annotate | Line # | Download | only in Python
      1  1.1  christos Python - DTracing Python
      2  1.1  christos 
      3  1.1  christos    These scripts trace the Python programming language, and require a version
      4  1.1  christos    of Python which has been built with DTrace probes.
      5  1.1  christos 
      6  1.1  christos    The Python DTrace provider was originally written by John Levon, and
      7  1.1  christos    was integrated into Solaris Nevada in build 65. If you are on a different
      8  1.1  christos    OS with DTrace and would like to use these scripts, you could download
      9  1.1  christos    Python and the Python DTrace provider patch listed in the comments here,
     10  1.1  christos 
     11  1.1  christos 	http://blogs.sun.com/levon/entry/python_and_dtrace_in_build
     12  1.1  christos 
     13  1.1  christos    You will need patch and build Python for these probes to work.
     14  1.1  christos    Or, check if a pre-built package is available someone on opensolaris.org.
     15  1.1  christos 
     16  1.1  christos    Since the DTrace Python provider may be developed further, there is a chance
     17  1.1  christos    that it has changed slightly by the time you are reading this, causing
     18  1.1  christos    these scripts to either break or behave oddly. Firstly, check for newer
     19  1.1  christos    versions of the DTraceToolkit; if it hasn't been updated and you need
     20  1.1  christos    to use these scripts immediately, then updating them shouldn't take
     21  1.1  christos    too long. The following was the state of the provider when these scripts
     22  1.1  christos    were written - check for changes and update the scripts accordingly,
     23  1.1  christos 
     24  1.1  christos 	provider python {
     25  1.1  christos 	    probe function-entry(file, subroutine, lineno)
     26  1.1  christos 	    probe function-return(file, subroutine, lineno)
     27  1.1  christos 	};
     28  1.1  christos 
     29