diff options
author | Mark Shannon <mark@hotpy.org> | 2021-12-15 15:32:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 15:32:32 +0000 |
commit | 342b93f9f28746abb7b221a61d5a9b26ccbb395a (patch) | |
tree | ebbe62af5b0853d8a8922c203174a88553ad798f /Modules/_opcode.c | |
parent | 3a60bfef49b3324660a615a8e6d10710e5f669d9 (diff) | |
download | cpython-git-342b93f9f28746abb7b221a61d5a9b26ccbb395a.tar.gz |
bpo-46072: Add --with-pystats configure option to simplify gathering of VM stats (GH-30116)
* Simplify specialization stats collection macros.
* Add --enable-pystats option to configure.
* Update specialization summary script to handle larger number of kinds
Diffstat (limited to 'Modules/_opcode.c')
-rw-r--r-- | Modules/_opcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_opcode.c b/Modules/_opcode.c index 39e3066955..4812716c67 100644 --- a/Modules/_opcode.c +++ b/Modules/_opcode.c @@ -85,7 +85,7 @@ static PyObject * _opcode_get_specialization_stats_impl(PyObject *module) /*[clinic end generated code: output=fcbc32fdfbec5c17 input=e1f60db68d8ce5f6]*/ { -#if COLLECT_SPECIALIZATION_STATS +#ifdef Py_STATS return _Py_GetSpecializationStats(); #else Py_RETURN_NONE; |