Move stats for the method cache into the Py_STAT machinery (GH-100255)

This commit is contained in:
Mark Shannon 2022-12-15 09:45:03 +00:00 committed by GitHub
parent bdd86741be
commit 48e352a241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 47 deletions

View file

@ -65,8 +65,15 @@ typedef struct _object_stats {
uint64_t dict_materialized_new_key;
uint64_t dict_materialized_too_big;
uint64_t dict_materialized_str_subclass;
uint64_t type_cache_hits;
uint64_t type_cache_misses;
uint64_t type_cache_dunder_hits;
uint64_t type_cache_dunder_misses;
uint64_t type_cache_collisions;
} ObjectStats;
#
typedef struct _stats {
OpcodeStats opcode_stats[256];
CallStats call_stats;