[Python-checkins] GH-100026: Include the number of raw input files in summarize_stats.py (GH-100027)
markshannon
webhook-mailer at python.org
Tue Dec 6 06:15:27 EST 2022
https://github.com/python/cpython/commit/9dc787ea96916552695e79397588fdfa68f22024
commit: 9dc787ea96916552695e79397588fdfa68f22024
branch: main
author: Michael Droettboom <mdboom at gmail.com>
committer: markshannon <mark at hotpy.org>
date: 2022-12-06T11:14:47Z
summary:
GH-100026: Include the number of raw input files in summarize_stats.py (GH-100027)
files:
M Tools/scripts/summarize_stats.py
diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py
index 9c098064fe54..c15501bdc761 100644
--- a/Tools/scripts/summarize_stats.py
+++ b/Tools/scripts/summarize_stats.py
@@ -184,6 +184,7 @@ def gather_stats(input):
key = key.strip()
value = int(value)
stats[key] += value
+ stats['__nfiles__'] += 1
return stats
else:
raise ValueError(f"{input:r} is not a file or directory path")
@@ -561,6 +562,9 @@ def output_single_stats(stats):
emit_specialization_overview(opcode_stats, total)
emit_call_stats(stats)
emit_object_stats(stats)
+ with Section("Meta stats", summary="Meta statistics"):
+ emit_table(("", "Count:"), [('Number of data files', stats['__nfiles__'])])
+
def output_comparative_stats(base_stats, head_stats):
base_opcode_stats = extract_opcode_stats(base_stats)
More information about the Python-checkins
mailing list