diff options
author | Mark Shannon <mark@hotpy.org> | 2024-09-23 18:10:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 18:10:55 (GMT) |
commit | c87b0e4a462f98c418f750c6c95d4d8715c38332 (patch) | |
tree | db3da84964d8494fb12937c4ffcafe85001cd962 /Python/specialize.c | |
parent | 6203ef35dd4ee9dd59759ce83eace8eacac69685 (diff) | |
download | cpython-c87b0e4a462f98c418f750c6c95d4d8715c38332.zip cpython-c87b0e4a462f98c418f750c6c95d4d8715c38332.tar.gz cpython-c87b0e4a462f98c418f750c6c95d4d8715c38332.tar.bz2 |
GH-124284: Add stats for refcount operations on immortal objects (GH-124288)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index da61895..d8bff39 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -205,10 +205,14 @@ print_object_stats(FILE *out, ObjectStats *stats) fprintf(out, "Object allocations over 4 kbytes: %" PRIu64 "\n", stats->allocations_big); fprintf(out, "Object frees: %" PRIu64 "\n", stats->frees); fprintf(out, "Object inline values: %" PRIu64 "\n", stats->inline_values); - fprintf(out, "Object interpreter increfs: %" PRIu64 "\n", stats->interpreter_increfs); - fprintf(out, "Object interpreter decrefs: %" PRIu64 "\n", stats->interpreter_decrefs); - fprintf(out, "Object increfs: %" PRIu64 "\n", stats->increfs); - fprintf(out, "Object decrefs: %" PRIu64 "\n", stats->decrefs); + fprintf(out, "Object interpreter mortal increfs: %" PRIu64 "\n", stats->interpreter_increfs); + fprintf(out, "Object interpreter mortal decrefs: %" PRIu64 "\n", stats->interpreter_decrefs); + fprintf(out, "Object mortal increfs: %" PRIu64 "\n", stats->increfs); + fprintf(out, "Object mortal decrefs: %" PRIu64 "\n", stats->decrefs); + fprintf(out, "Object interpreter immortal increfs: %" PRIu64 "\n", stats->interpreter_immortal_increfs); + fprintf(out, "Object interpreter immortal decrefs: %" PRIu64 "\n", stats->interpreter_immortal_decrefs); + fprintf(out, "Object immortal increfs: %" PRIu64 "\n", stats->immortal_increfs); + fprintf(out, "Object immortal decrefs: %" PRIu64 "\n", stats->immortal_decrefs); fprintf(out, "Object materialize dict (on request): %" PRIu64 "\n", stats->dict_materialized_on_request); fprintf(out, "Object materialize dict (new key): %" PRIu64 "\n", stats->dict_materialized_new_key); fprintf(out, "Object materialize dict (too big): %" PRIu64 "\n", stats->dict_materialized_too_big); |