We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee28d8 commit f28a47fCopy full SHA for f28a47f
misc/analyze_cache.py
@@ -77,6 +77,8 @@ def pluck(name: str, chunks: Iterable[JsonDict]) -> Iterable[JsonDict]:
77
78
79
def report_counter(counter: Counter[str], amount: int | None = None) -> None:
80
+ if amount is None:
81
+ amount=len(counter) #default to the length of the counter if `amount` is None
82
for name, count in counter.most_common(amount):
83
print(f" {count: <8} {name}")
84
print()
0 commit comments