mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
A few minor tweaks to get stats working and compiling cleanly. (#117219)
Fixes a compilation error when configured with `--enable-pystats`, an array size issue, and an unused variable.
This commit is contained in:
parent
507896d97d
commit
23e4f80ce2
3 changed files with 5 additions and 8 deletions
|
@ -250,7 +250,6 @@ print_optimization_stats(FILE *out, OptimizationStats *stats)
|
|||
fprintf(out, "Optimizer remove globals builtins changed: %" PRIu64 "\n", stats->remove_globals_builtins_changed);
|
||||
fprintf(out, "Optimizer remove globals incorrect keys: %" PRIu64 "\n", stats->remove_globals_incorrect_keys);
|
||||
|
||||
const char* const* names;
|
||||
for (int i = 0; i <= MAX_UOP_ID; i++) {
|
||||
if (stats->opcode[i].execution_count) {
|
||||
fprintf(out, "uops[%s].execution_count : %" PRIu64 "\n", _PyUOpName(i), stats->opcode[i].execution_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue