mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
bpo-46072: Add some frame stats. (GH-31060)
This commit is contained in:
parent
a05866ce3e
commit
187930f74c
7 changed files with 16 additions and 1 deletions
|
@ -106,6 +106,9 @@ def main():
|
|||
for key, value in stats.items():
|
||||
if "Calls to" in key:
|
||||
print(f" {key}: {value} {100*value/total:0.1f}%")
|
||||
for key, value in stats.items():
|
||||
if key.startswith("Frame"):
|
||||
print(f" {key}: {value} {100*value/total:0.1f}%")
|
||||
print("Object stats:")
|
||||
total = stats.get("Object new values")
|
||||
for key, value in stats.items():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue