Skip to content

Commit a47055e

Browse files
committed
[process-stats-dir] Sniff module-qualified --select-stats-from-csv-baseline
1 parent 3bcc137 commit a47055e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/process-stats-dir.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ def vars_of_args(args):
4848
vargs = vars(args)
4949
if args.select_stats_from_csv_baseline is not None:
5050
b = read_stats_dict_from_csv(args.select_stats_from_csv_baseline)
51-
if args.group_by_module:
51+
# Sniff baseline stat-names to figure out if they're module-qualified
52+
# even when the user isn't asking us to _output_ module-grouped data.
53+
all_triples = all(len(k.split('.')) == 3 for k in b.keys())
54+
if args.group_by_module or all_triples:
5255
vargs['select_stat'] = set(stat_name_minus_module(k)
5356
for k in b.keys())
5457
else:

0 commit comments

Comments
 (0)