mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
GH-113710: Fix updating of dict version tag and add watched dict stats (GH-115221)
This commit is contained in:
parent
93ac78ac3e
commit
8144661017
6 changed files with 22 additions and 23 deletions
|
@ -415,7 +415,7 @@ class Stats:
|
|||
def get_rare_events(self) -> list[tuple[str, int]]:
|
||||
prefix = "Rare event "
|
||||
return [
|
||||
(key[len(prefix) + 1:-1], val)
|
||||
(key[len(prefix) + 1:-1].replace("_", " "), val)
|
||||
for key, val in self._data.items()
|
||||
if key.startswith(prefix)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue