Skip to content

Commit

Permalink
Fix stats for non-tier-2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon committed May 1, 2024
1 parent d9b47a3 commit 5032ad9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ print_gc_stats(FILE *out, GCStats *stats)
}
}

#ifdef _Py_TIER2
static void
print_histogram(FILE *out, const char *name, uint64_t hist[_Py_UOP_HIST_SIZE])
{
Expand Down Expand Up @@ -289,6 +290,7 @@ print_optimization_stats(FILE *out, OptimizationStats *stats)
}
}
}
#endif

static void
print_rare_event_stats(FILE *out, RareEventStats *stats)
Expand All @@ -309,7 +311,9 @@ print_stats(FILE *out, PyStats *stats)
print_call_stats(out, &stats->call_stats);
print_object_stats(out, &stats->object_stats);
print_gc_stats(out, stats->gc_stats);
#ifdef _Py_TIER2
print_optimization_stats(out, &stats->optimization_stats);
#endif
print_rare_event_stats(out, &stats->rare_event_stats);
}

Expand Down

0 comments on commit 5032ad9

Please sign in to comment.