summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-12-15 15:32:32 (GMT)
committerGitHub <noreply@github.com>2021-12-15 15:32:32 (GMT)
commit342b93f9f28746abb7b221a61d5a9b26ccbb395a (patch)
treeebbe62af5b0853d8a8922c203174a88553ad798f /configure
parent3a60bfef49b3324660a615a8e6d10710e5f669d9 (diff)
downloadcpython-342b93f9f28746abb7b221a61d5a9b26ccbb395a.zip
cpython-342b93f9f28746abb7b221a61d5a9b26ccbb395a.tar.gz
cpython-342b93f9f28746abb7b221a61d5a9b26ccbb395a.tar.bz2
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 'configure')
-rwxr-xr-xconfigure25
1 files changed, 25 insertions, 0 deletions
diff --git a/configure b/configure
index 583e7d1..1ede299 100755
--- a/configure
+++ b/configure
@@ -1006,6 +1006,7 @@ enable_shared
enable_profiling
with_pydebug
with_trace_refs
+enable_pystats
with_assertions
enable_optimizations
with_lto
@@ -1713,6 +1714,7 @@ Optional Features:
no)
--enable-profiling enable C-level code profiling with gprof (default is
no)
+ --enable-pystats enable internal statistics gathering (default is no)
--enable-optimizations enable expensive, stable optimizations (PGO, etc.)
(default is no)
--enable-loadable-sqlite-extensions
@@ -6915,6 +6917,29 @@ $as_echo "#define Py_TRACE_REFS 1" >>confdefs.h
fi
+
+# Check for --enable-pystats
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pystats" >&5
+$as_echo_n "checking for --enable-pystats... " >&6; }
+# Check whether --enable-pystats was given.
+if test "${enable_pystats+set}" = set; then :
+ enableval=$enable_pystats;
+else
+ enable_pystats=no
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pystats" >&5
+$as_echo "$enable_pystats" >&6; }
+
+if test "x$enable_pystats" = xyes; then :
+
+
+$as_echo "#define Py_STATS 1" >>confdefs.h
+
+
+fi
+
# Check for --with-assertions.
# This allows enabling assertions without Py_DEBUG.
assertions='false'