Skip to content

Commit 555f446

Browse files
committed
Fix stats for non-tier-2 build
1 parent 8ebdaf1 commit 555f446

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/specialize.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ print_gc_stats(FILE *out, GCStats *stats)
215215
}
216216
}
217217

218+
#ifdef _Py_TIER2
218219
static void
219220
print_histogram(FILE *out, const char *name, uint64_t hist[_Py_UOP_HIST_SIZE])
220221
{
@@ -289,6 +290,7 @@ print_optimization_stats(FILE *out, OptimizationStats *stats)
289290
}
290291
}
291292
}
293+
#endif
292294

293295
static void
294296
print_rare_event_stats(FILE *out, RareEventStats *stats)
@@ -309,7 +311,9 @@ print_stats(FILE *out, PyStats *stats)
309311
print_call_stats(out, &stats->call_stats);
310312
print_object_stats(out, &stats->object_stats);
311313
print_gc_stats(out, stats->gc_stats);
314+
#ifdef _Py_TIER2
312315
print_optimization_stats(out, &stats->optimization_stats);
316+
#endif
313317
print_rare_event_stats(out, &stats->rare_event_stats);
314318
}
315319

0 commit comments

Comments
 (0)