diff options
author | Mark Shannon <mark@hotpy.org> | 2024-02-12 16:07:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 16:07:38 (GMT) |
commit | 814466101790d4381ca4800c3d3b0cc0aad50c62 (patch) | |
tree | 6e4e71af88ab2951fe172a7e821e857606def6d6 /Include/cpython/pystats.h | |
parent | 93ac78ac3ee124942bca7492149c3ff0003b6e30 (diff) | |
download | cpython-814466101790d4381ca4800c3d3b0cc0aad50c62.zip cpython-814466101790d4381ca4800c3d3b0cc0aad50c62.tar.gz cpython-814466101790d4381ca4800c3d3b0cc0aad50c62.tar.bz2 |
GH-113710: Fix updating of dict version tag and add watched dict stats (GH-115221)
Diffstat (limited to 'Include/cpython/pystats.h')
-rw-r--r-- | Include/cpython/pystats.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/cpython/pystats.h b/Include/cpython/pystats.h index bf0cfe4..0f50439 100644 --- a/Include/cpython/pystats.h +++ b/Include/cpython/pystats.h @@ -133,6 +133,9 @@ typedef struct _rare_event_stats { uint64_t builtin_dict; /* Modifying a function, e.g. func.__defaults__ = ..., etc. */ uint64_t func_modification; + /* Modifying a dict that is being watched */ + uint64_t watched_dict_modification; + uint64_t watched_globals_modification; } RareEventStats; typedef struct _stats { |