Skip to content

Commit 0b10a9f

Browse files
eendebakptclaude
andcommitted
Wire jit_got_size into pystats print and merge
Mirrors the wiring of the other jit_*_size counters: emit the value in print_optimization_stats and accumulate it in merge_optimization_stats so merged stats include the GOT size. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 301d58b commit 0b10a9f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/pystats.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ print_optimization_stats(FILE *out, OptimizationStats *stats)
326326
fprintf(out, "JIT code size: %" PRIu64 "\n", stats->jit_code_size);
327327
fprintf(out, "JIT trampoline size: %" PRIu64 "\n", stats->jit_trampoline_size);
328328
fprintf(out, "JIT data size: %" PRIu64 "\n", stats->jit_data_size);
329+
fprintf(out, "JIT GOT size: %" PRIu64 "\n", stats->jit_got_size);
329330
fprintf(out, "JIT padding size: %" PRIu64 "\n", stats->jit_padding_size);
330331
fprintf(out, "JIT freed memory size: %" PRIu64 "\n", stats->jit_freed_memory_size);
331332

@@ -479,6 +480,7 @@ merge_optimization_stats(OptimizationStats *dest, const OptimizationStats *src)
479480
dest->jit_code_size += src->jit_code_size;
480481
dest->jit_trampoline_size += src->jit_trampoline_size;
481482
dest->jit_data_size += src->jit_data_size;
483+
dest->jit_got_size += src->jit_got_size;
482484
dest->jit_padding_size += src->jit_padding_size;
483485
dest->jit_freed_memory_size += src->jit_freed_memory_size;
484486

0 commit comments

Comments
 (0)