summaryrefslogtreecommitdiffstats
path: root/Objects/frameobject.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-02-02 11:01:33 (GMT)
committerGitHub <noreply@github.com>2022-02-02 11:01:33 (GMT)
commit187930f74c44e460ba09c60ba5d9bb4fac543d8f (patch)
tree34c1c536986e6a5b33b66e4aad10e7594ccb3ba0 /Objects/frameobject.c
parenta05866ce3e617e2b74c205f27a89eab63c7b3101 (diff)
downloadcpython-187930f74c44e460ba09c60ba5d9bb4fac543d8f.zip
cpython-187930f74c44e460ba09c60ba5d9bb4fac543d8f.tar.gz
cpython-187930f74c44e460ba09c60ba5d9bb4fac543d8f.tar.bz2
bpo-46072: Add some frame stats. (GH-31060)
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r--Objects/frameobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 81ad4cc..15da132 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -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) {