Skip to content

Commit b001e29

Browse files
committed
[cperf] Factor out briefpattern, add NumInstructions to it
1 parent e8e43b8 commit b001e29

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

run_cperf

+3-2
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ def analyze_results(configs, args):
403403
for m in (passed_modules - failed_modules):
404404
common_args += ['--select-module', m]
405405

406+
briefpattern = r'driver.*wall|NumLLVMBytesOutput|NumInstructions'
406407
returncodes = []
407408
for config in configs:
408409
variant = get_variant(config, args)
@@ -418,7 +419,7 @@ def analyze_results(configs, args):
418419
common_args +
419420
['--output', get_table_name('head', 'brief', variant),
420421
'--divide-by', str(args.repetitions),
421-
'--select-stat', r'driver.*wall|NumLLVMBytesOutput',
422+
'--select-stat', briefpattern,
422423
'--merge-timers',
423424
'--delta-pct-thresh', delta_pct_thresh,
424425
'--delta-usec-thresh', delta_usec_thresh,
@@ -439,7 +440,7 @@ def analyze_results(configs, args):
439440
common_args +
440441
['--output',
441442
get_table_name('baseline', 'brief', variant),
442-
'--select-stat', r'driver.*wall|NumLLVMBytesOutput',
443+
'--select-stat', briefpattern,
443444
'--merge-timers',
444445
'--divide-by', str(args.repetitions),
445446
'--delta-pct-thresh', delta_pct_thresh,

0 commit comments

Comments
 (0)