diff options
author | Nicholas Bastin <nick.bastin@gmail.com> | 2004-03-24 21:57:10 (GMT) |
---|---|---|
committer | Nicholas Bastin <nick.bastin@gmail.com> | 2004-03-24 21:57:10 (GMT) |
commit | c69ebe8d50529eae281275c841428eb9b375a442 (patch) | |
tree | b8150da59983ca89c192b45311eeee050a0b4a16 /Doc/lib/libpdb.tex | |
parent | a1dde13389cf47ac626394796740925504e3e272 (diff) | |
download | cpython-c69ebe8d50529eae281275c841428eb9b375a442.zip cpython-c69ebe8d50529eae281275c841428eb9b375a442.tar.gz cpython-c69ebe8d50529eae281275c841428eb9b375a442.tar.bz2 |
Enable the profiling of C functions (builtins and extensions)
Diffstat (limited to 'Doc/lib/libpdb.tex')
-rw-r--r-- | Doc/lib/libpdb.tex | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Doc/lib/libpdb.tex b/Doc/lib/libpdb.tex index ee9ab91..2229dc8 100644 --- a/Doc/lib/libpdb.tex +++ b/Doc/lib/libpdb.tex @@ -350,8 +350,9 @@ Some changes were made to the interpreter: Trace functions have three arguments: \var{frame}, \var{event}, and \var{arg}. \var{frame} is the current stack frame. \var{event} is a -string: \code{'call'}, \code{'line'}, \code{'return'} or -\code{'exception'}. \var{arg} depends on the event type. +string: \code{'call'}, \code{'line'}, \code{'return'}, \code{'exception'}, + \code{'c_call'}, \code{'c_return'}, or \code{'c_exception'}. \var{arg} + depends on the event type. The global trace function is invoked (with \var{event} set to \code{'call'}) whenever a new local scope is entered; it should return @@ -390,6 +391,16 @@ An exception has occurred. The local trace function is called; \var{traceback})}; the return value specifies the new local trace function. +\item[\code{'c_call'}] +A C function is about to be called. This may be an extension function +or a builtin. \var{arg} is the C function name. + +\item[\code{'c_return'}] +A C function has returned. \var{arg} is \code{None}. + +\item[\code{'c_exception'}] +A C function has thrown an exception. \var{arg} is \code{None}. + \end{description} Note that as an exception is propagated down the chain of callers, an |