Skip to content

Commit

Permalink
Disable Tier 1 stats in Tier 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Sep 27, 2023
1 parent ba58546 commit 08cd8c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Python/executor.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
goto deoptimize; \
}

#ifdef Py_STATS
// Disable these macros that apply to Tier 1 stats when we are in Tier 2
#undef STAT_INC
#define STAT_INC(opname, name) ((void)0)
#undef STAT_DEC
#define STAT_DEC(opname, name) ((void)0)
#undef CALL_STAT_INC
#define CALL_STAT_INC(name) ((void)0)
#endif

#undef ENABLE_SPECIALIZATION
#define ENABLE_SPECIALIZATION 0

Expand Down

0 comments on commit 08cd8c0

Please sign in to comment.