mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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
This commit is contained in:
parent
3a60bfef49
commit
342b93f9f2
9 changed files with 73 additions and 44 deletions
|
@ -24,7 +24,7 @@ def print_stats(name, family_stats):
|
|||
for key in ("specialization_success", "specialization_failure"):
|
||||
print(f" {key}:{family_stats[key]:>12}")
|
||||
total_failures = family_stats["specialization_failure"]
|
||||
failure_kinds = [ 0 ] * 20
|
||||
failure_kinds = [ 0 ] * 30
|
||||
for key in family_stats:
|
||||
if not key.startswith("specialization_failure_kind"):
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue