diff options
author | Fred Drake <fdrake@acm.org> | 2001-06-08 04:33:09 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-06-08 04:33:09 (GMT) |
commit | 904aa7bb00e7cbcde9a8d7f449c2094155395d49 (patch) | |
tree | c7c6636ca486ac4fd0eaf81c89441aa8afd39aa1 /Python/frozenmain.c | |
parent | edb5ffb2c145fc52df2195c22688db51034b08d5 (diff) | |
download | cpython-904aa7bb00e7cbcde9a8d7f449c2094155395d49.zip cpython-904aa7bb00e7cbcde9a8d7f449c2094155395d49.tar.gz cpython-904aa7bb00e7cbcde9a8d7f449c2094155395d49.tar.bz2 |
call_trace(): Add an additional parameter -- pointer to a PyObject*
that should be used to cache an interned version of the event
string passed to the profile/trace function. call_trace() will
create interned strings and cache them in using the storage
specified by this additional parameter, avoiding a lot of string
object creation at runtime when using the profiling or tracing
functions.
All call sites are modified to pass the additional parameter, and four
static PyObject* variables are allocated to cache the interned string
objects.
This closes SF patch #431257.
Diffstat (limited to 'Python/frozenmain.c')
0 files changed, 0 insertions, 0 deletions