mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-128842: Collect JIT memory stats (GH-128941)
This commit is contained in:
parent
e6c76b947b
commit
567394517a
6 changed files with 117 additions and 8 deletions
|
@ -309,6 +309,14 @@ print_optimization_stats(FILE *out, OptimizationStats *stats)
|
|||
);
|
||||
}
|
||||
}
|
||||
fprintf(out, "JIT total memory size: %" PRIu64 "\n", stats->jit_total_memory_size);
|
||||
fprintf(out, "JIT code size: %" PRIu64 "\n", stats->jit_code_size);
|
||||
fprintf(out, "JIT trampoline size: %" PRIu64 "\n", stats->jit_trampoline_size);
|
||||
fprintf(out, "JIT data size: %" PRIu64 "\n", stats->jit_data_size);
|
||||
fprintf(out, "JIT padding size: %" PRIu64 "\n", stats->jit_padding_size);
|
||||
fprintf(out, "JIT freed memory size: %" PRIu64 "\n", stats->jit_freed_memory_size);
|
||||
|
||||
print_histogram(out, "Trace total memory size", stats->trace_total_memory_hist);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue