From: Nicholas Bastin Date: Tue, 22 Jun 2004 04:18:47 +0000 (+0000) Subject: One forgotten C profiling #ifdef X-Git-Tag: v2.4a1~139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbffbd19836b163b679f950a4977cb9b451c14ea;p=thirdparty%2FPython%2Fcpython.git One forgotten C profiling #ifdef --- diff --git a/Python/ceval.c b/Python/ceval.c index d5493cc0c64c..6bc35d078656 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3488,9 +3488,10 @@ call_function(PyObject ***pp_stack, int oparg PyObject *func = *pfunc; PyObject *x, *w; +#ifdef WITH_C_PROF int are_tracing = 0; - PyThreadState *tstate = PyThreadState_GET(); +#endif /* Always dispatch PyCFunction first, because these are presumed to be the most frequent callable object.