Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-46072: Add --with-pystats configure option to simplify gathering of VM stats #30116

Merged
merged 7 commits into from Dec 15, 2021

Conversation

Copy link
Member

@markshannon markshannon commented Dec 15, 2021

  • Adds --with-pystats configure option to #define Py_STATS.
  • Replaces various specialization stats gathering options with Py_STATS.

https://bugs.python.org/issue46072

@markshannon
Copy link
Author

@markshannon markshannon commented Dec 15, 2021

@tiran, could you check that my changes to the configure and configure.ac files are sane?

@tiran
Copy link

@tiran tiran commented Dec 15, 2021

I think this should be an enable flag rather than a with flag. AC_ARG_WITH is for Optional Packages, AC_ARG_ENABLE is for Optional Features. We don't use with and enable consistently in our configure file.

# Check for --enable-pystats
AC_MSG_CHECKING([for --enable-pystats])
AC_ARG_ENABLE([pystats],
  [AS_HELP_STRING(
    [--enable-pystats],
    [enable internal statistics gathering (default is no)])],,
  [enable_pystats=no]
)
AC_MSG_RESULT([$enable_pystats])

AS_VAR_IF([enable_pystats], [yes], [
  AC_DEFINE([Py_STATS], [1], [Define if you want to enable internal statistics gathering.])
])

@markshannon markshannon merged commit 342b93f into python:main Dec 15, 2021
12 checks passed
@markshannon markshannon deleted the with-stats branch Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants