mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
bpo-46072: Add some frame stats. (GH-31060)
This commit is contained in:
parent
a05866ce3e
commit
187930f74c
7 changed files with 16 additions and 1 deletions
|
@ -794,6 +794,7 @@ init_frame(InterpreterFrame *frame, PyFunctionObject *func, PyObject *locals)
|
|||
PyFrameObject*
|
||||
_PyFrame_New_NoTrack(PyCodeObject *code)
|
||||
{
|
||||
CALL_STAT_INC(frame_objects_created);
|
||||
int slots = code->co_nlocalsplus + code->co_stacksize;
|
||||
PyFrameObject *f = PyObject_GC_NewVar(PyFrameObject, &PyFrame_Type, slots);
|
||||
if (f == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue