Skip to content

Commit

Permalink
Rename 'type cache' to 'method cache' in stats output.
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon committed Dec 14, 2022
1 parent 67fc05f commit 6d6aa01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ print_object_stats(FILE *out, ObjectStats *stats)
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);
fprintf(out, "Object materialize dict (str subclass): %" PRIu64 "\n", stats->dict_materialized_str_subclass);
fprintf(out, "Object type cache hits: %" PRIu64 "\n", stats->type_cache_hits);
fprintf(out, "Object type cache misses: %" PRIu64 "\n", stats->type_cache_misses);
fprintf(out, "Object type cache collisions: %" PRIu64 "\n", stats->type_cache_collisions);
fprintf(out, "Object type cache dunder hits: %" PRIu64 "\n", stats->type_cache_dunder_hits);
fprintf(out, "Object type cache dunder misses: %" PRIu64 "\n", stats->type_cache_dunder_misses);
fprintf(out, "Object method cache hits: %" PRIu64 "\n", stats->type_cache_hits);
fprintf(out, "Object method cache misses: %" PRIu64 "\n", stats->type_cache_misses);
fprintf(out, "Object method cache collisions: %" PRIu64 "\n", stats->type_cache_collisions);
fprintf(out, "Object method cache dunder hits: %" PRIu64 "\n", stats->type_cache_dunder_hits);
fprintf(out, "Object method cache dunder misses: %" PRIu64 "\n", stats->type_cache_dunder_misses);
}

static void
Expand Down

0 comments on commit 6d6aa01

Please sign in to comment.