mirror of
https://github.com/python/cpython.git
synced 2026-01-07 16:02:55 +00:00
GH-117121: Add pystats to JIT builds (GH-117346)
This commit is contained in:
parent
14f1ca7d53
commit
26d328b2ba
3 changed files with 10 additions and 1 deletions
|
|
@ -990,7 +990,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
|
|||
#define DPRINTF(level, ...)
|
||||
#endif
|
||||
|
||||
OPT_STAT_INC(traces_executed);
|
||||
; // dummy statement after a label, before a declaration
|
||||
uint16_t uopcode;
|
||||
#ifdef Py_STATS
|
||||
uint64_t trace_uop_execution_counter = 0;
|
||||
|
|
|
|||
|
|
@ -392,6 +392,7 @@ stack_pointer = _PyFrame_GetStackPointer(frame);
|
|||
#ifdef _Py_JIT
|
||||
#define GOTO_TIER_TWO(EXECUTOR) \
|
||||
do { \
|
||||
OPT_STAT_INC(traces_executed); \
|
||||
jit_func jitted = (EXECUTOR)->jit_code; \
|
||||
next_instr = jitted(frame, stack_pointer, tstate); \
|
||||
Py_DECREF(tstate->previous_executor); \
|
||||
|
|
@ -406,6 +407,7 @@ do { \
|
|||
#else
|
||||
#define GOTO_TIER_TWO(EXECUTOR) \
|
||||
do { \
|
||||
OPT_STAT_INC(traces_executed); \
|
||||
next_uop = (EXECUTOR)->trace; \
|
||||
assert(next_uop->opcode == _START_EXECUTOR || next_uop->opcode == _COLD_EXIT); \
|
||||
goto enter_tier_two; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue