forked from jevinskie/llvm-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TEST.profile.report
41 lines (36 loc) · 1.61 KB
/
TEST.profile.report
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
##=== TEST.profile.report - Report description for profiling ---*- perl -*-===##
#
# This file defines a report to be generated for the profiling tests.
#
##===----------------------------------------------------------------------===##
# Sort by program name
$SortCol = 0;
$TrimRepeatedPrefix = 1;
my $WallTimeRE = "Time: ([0-9.]+) seconds \\([0-9.]+ wall clock";
# FormatTime - Convert a time from 1m23.45 into 83.45
sub FormatTime {
my $Time = shift;
if ($Time =~ m/([0-9]+)[m:]([0-9.]+)/) {
return sprintf("%7.4f", $1*60.0+$2);
}
return sprintf("%7.4f", $Time);
}
(
["Program", '\'([^\']+)\' Program'],
[],
["Gen-CC", 'TEST-RESULT-prof-edge-gen-compile-success: (pass|fail|xfail)'],
["CC_Time", 'TEST-RESULT-prof-edge-gen-compile-time: user\s*([.0-9m:]+)', \&FormatTime],
["Edges", 'TEST-RESULT-prof-edge-gen-compile-edges-inserted: ([0-9]+)'],
["Exec-Time", 'TEST-RESULT-prof-edge-gen-exec-time: user\s*([.0-9m:]+)', \&FormatTime],
[],
["Use-CC", 'TEST-RESULT-prof-edge-use-compile-success: (pass|fail|xfail)'],
["CC_Time", 'TEST-RESULT-prof-edge-use-compile-time: user\s*([.0-9m:]+)', \&FormatTime],
["Terms", 'TEST-RESULT-prof-edge-use-compile-terms-annotated: ([0-9]+)'],
["Expects", 'TEST-RESULT-prof-edge-use-compile-lower-expects: ([0-9]+)'],
[],
["Vanilla", 'TEST-RESULT-vanilla-exec-success: (pass|fail|xfail)'],
["Exec_Time", 'TEST-RESULT-vanilla-exec-time: user\s*([.0-9m:]+)', \&FormatTime],
[],
["PGO", 'TEST-RESULT-prof-edge-use-exec-success: (pass|fail|xfail)'],
["Exec_Time", 'TEST-RESULT-prof-edge-use-exec-time: user\s*([.0-9m:]+)', \&FormatTime],
);