diff options
author | Michael Droettboom <mdboom@gmail.com> | 2024-03-21 17:27:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 17:27:46 (GMT) |
commit | 50369e6c34d05222e5a0ec9443a9f7b230e83112 (patch) | |
tree | db917d49c0ab14cb31520715390a10a1247e73ba /Include/internal | |
parent | 617158e07811edfd6fd552a3d84b0beedd8f1d18 (diff) | |
download | cpython-50369e6c34d05222e5a0ec9443a9f7b230e83112.zip cpython-50369e6c34d05222e5a0ec9443a9f7b230e83112.tar.gz cpython-50369e6c34d05222e5a0ec9443a9f7b230e83112.tar.bz2 |
gh-116996: Add pystats about _Py_uop_analyse_and_optimize (GH-116997)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_code.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 8eabd49..e004783 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -308,6 +308,7 @@ extern int _PyStaticCode_Init(PyCodeObject *co); #define OPT_STAT_INC(name) do { if (_Py_stats) _Py_stats->optimization_stats.name++; } while (0) #define UOP_STAT_INC(opname, name) do { if (_Py_stats) { assert(opname < 512); _Py_stats->optimization_stats.opcode[opname].name++; } } while (0) #define OPT_UNSUPPORTED_OPCODE(opname) do { if (_Py_stats) _Py_stats->optimization_stats.unsupported_opcode[opname]++; } while (0) +#define OPT_ERROR_IN_OPCODE(opname) do { if (_Py_stats) _Py_stats->optimization_stats.error_in_opcode[opname]++; } while (0) #define OPT_HIST(length, name) \ do { \ if (_Py_stats) { \ @@ -334,6 +335,7 @@ PyAPI_FUNC(PyObject*) _Py_GetSpecializationStats(void); #define OPT_STAT_INC(name) ((void)0) #define UOP_STAT_INC(opname, name) ((void)0) #define OPT_UNSUPPORTED_OPCODE(opname) ((void)0) +#define OPT_ERROR_IN_OPCODE(opname) ((void)0) #define OPT_HIST(length, name) ((void)0) #define RARE_EVENT_STAT_INC(name) ((void)0) #endif // !Py_STATS |