8000 GH-100026: Include the number of raw input files in summarize_stats.p… · python/cpython@9dc787e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9dc787e

Browse files
authored
GH-100026: Include the number of raw input files in summarize_stats.py (GH-100027)
1 parent 5c19050 commit 9dc787e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tools/scripts/summarize_stats.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def gather_stats(input):
184184
key = key.strip()
185185
value = int(value)
186186
stats[key] += value
187+
stats['__nfiles__'] += 1
187188
return stats
188189
else:
189190
raise ValueError(f"{input:r} is not a file or directory path")
@@ -561,6 +562,9 @@ def output_single_stats(stats):
561562
emit_specialization_overview(opcode_stats, total)
562563
emit_call_stats(stats)
563564
emit_object_stats(stats)
565+
with Section("Meta stats", summary="Meta statistics"):
566+
emit_table(("", "Count:"), [('Number of data files', stats['__nfiles__'])])
567+
564568

565569
def output_comparative_stats(base_stats, head_stats):
566570
base_opcode_stats = extract_opcode_stats(base_stats)

0 commit comments

Comments
 (0)
0