@@ -2242,6 +2242,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
2242
2242
if (new_frame == NULL ) {
2243
2243
goto error ;
2244
2244
}
2245
+ CALL_STAT_INC (frames_pushed );
2245
2246
_PyFrame_InitializeSpecials (new_frame , getitem ,
2246
2247
NULL , code -> co_nlocalsplus );
2247
2248
STACK_SHRINK (2 );
@@ -4660,6 +4661,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
4660
4661
if (new_frame == NULL ) {
4661
4662
goto error ;
4662
4663
}
4664
+ CALL_STAT_INC (inlined_py_calls );
4663
4665
STACK_SHRINK (argcount );
4664
4666
for (int i = 0 ; i < argcount ; i ++ ) {
4665
4667
new_frame -> localsplus [i ] = stack_pointer [i ];
@@ -4690,6 +4692,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
4690
4692
if (new_frame == NULL ) {
4691
4693
goto error ;
4692
4694
}
4695
+ CALL_STAT_INC (inlined_py_calls );
4693
4696
STACK_SHRINK (argcount );
4694
4697
for (int i = 0 ; i < argcount ; i ++ ) {
4695
4698
new_frame -> localsplus [i ] = stack_pointer [i ];
@@ -4708,7 +4711,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
4708
4711
_PyFrame_SetStackPointer (frame , stack_pointer );
4709
4712
new_frame -> previous = frame ;
4710
4713
frame = cframe .current_frame = new_frame ;
4711
- CALL_STAT_INC (inlined_py_calls );
4712
4714
goto start_frame ;
4713
4715
}
4714
4716
@@ -6078,6 +6080,7 @@ _PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
6078
6080
{
6079
6081
PyCodeObject * code = (PyCodeObject * )func -> func_code ;
6080
6082
size_t size = code -> co_nlocalsplus + code -> co_stacksize + FRAME_SPECIALS_SIZE ;
6083
+ CALL_STAT_INC (frames_pushed );
6081
6084
InterpreterFrame * frame = _PyThreadState_BumpFramePointer (tstate , size );
6082
6085
if (frame == NULL ) {
6083
6086
goto fail ;
0 commit comments