summaryrefslogtreecommitdiff
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-06-27 19:18:03 +0000
committerFred Drake <fdrake@acm.org>2001-06-27 19:18:03 +0000
commit6d116842c6a74c310a33811639a5dfc45fc93001 (patch)
treee5d916c54892e41733c9436d334e321fb6b8fa32 /Python/pystate.c
parente1df8762118e57cd095911b6add678f63198a16f (diff)
downloadcpython-6d116842c6a74c310a33811639a5dfc45fc93001.tar.gz
Revise the interface to the profiling and tracing support for the
Python interpreter. This change adds two new C-level APIs: PyEval_SetProfile() and PyEval_SetTrace(). These can be used to install profile and trace functions implemented in C, which can operate at much higher speeds than Python-based functions. The overhead for calling a C-based profile function is a very small fraction of a percent of the overhead involved in calling a Python-based function. The machinery required to call a Python-based profile or trace function been moved to sysmodule.c, where sys.setprofile() and sys.setprofile() simply become users of the new interface.
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions