File: cs-sample-nested-profile.test

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (199 lines) | stat: -rw-r--r-- 9,107 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
RUN: llvm-profdata merge --sample --text -output=%t.proftext %S/Inputs/cs-sample-preinline.proftext --gen-cs-nested-profile=1 -generate-merged-base-profiles=0
RUN: FileCheck %s < %t.proftext --match-full-lines --strict-whitespace
RUN: llvm-profdata merge --sample --text -output=%t.probe.proftext %S/Inputs/cs-sample-preinline-probe.proftext --gen-cs-nested-profile=1 -generate-merged-base-profiles=0
RUN: FileCheck %s < %t.probe.proftext --match-full-lines --strict-whitespace -check-prefix=PROBE
RUN: llvm-profdata merge --sample --extbinary -output=%t.profbin %S/Inputs/cs-sample-preinline.proftext --gen-cs-nested-profile=1 -generate-merged-base-profiles=0
RUN: llvm-profdata merge --sample --text -output=%t2.proftext %t.profbin
RUN: FileCheck %s < %t2.proftext --match-full-lines --strict-whitespace
RUN: llvm-profdata show --sample -show-sec-info-only %t.profbin | FileCheck %s -check-prefix=PREINLINE
RUN: llvm-profdata merge --sample --text -output=%t3.proftext %S/Inputs/cs-sample-preinline.proftext --gen-cs-nested-profile=1 -generate-merged-base-profiles=1
RUN: FileCheck %s < %t3.proftext --match-full-lines --strict-whitespace -check-prefix=RECOUNT
RUN: llvm-profdata merge --sample --extbinary -output=%t2.profbin %S/Inputs/cs-sample-preinline.proftext --gen-cs-nested-profile=1 -generate-merged-base-profiles=1
RUN: llvm-profdata show -sample -detailed-summary %S/Inputs/cs-sample-preinline.proftext | FileCheck %s -check-prefix=SUMMARY
RUN: llvm-profdata show -sample -detailed-summary %t2.profbin | FileCheck %s -check-prefix=SUMMARY-NEST
RUN: llvm-profdata show -sample -detailed-summary %t3.proftext | FileCheck %s -check-prefix=SUMMARY-NEST


; CHECK:main:1968621:12
; CHECK-NEXT: 2: 24
; CHECK-NEXT: 3: 17 _Z5funcAi:7
; CHECK-NEXT: 3.1: 10 _Z5funcBi:11
; CHECK-NEXT: 3: _Z5funcAi:1467388
; CHECK-NEXT:  0: 10
; CHECK-NEXT:  3: 24
; CHECK-NEXT:  1: _Z8funcLeafi:1467299
; CHECK-NEXT:   0: 6
; CHECK-NEXT:   1: 6
; CHECK-NEXT:   3: 287884
; CHECK-NEXT:   4: 287864 _Z3fibi:315608
; CHECK-NEXT:   15: 23
; CHECK-NEXT:   !Attributes: 2
; CHECK-NEXT:  !Attributes: 2
; CHECK-NEXT: 3.1: _Z5funcBi:500954
; CHECK-NEXT:  0: 19
; CHECK-NEXT:  3: 12
; CHECK-NEXT:  1: _Z8funcLeafi:500853
; CHECK-NEXT:   0: 15
; CHECK-NEXT:   1: 15
; CHECK-NEXT:   3: 74946
; CHECK-NEXT:   4: 74941 _Z3fibi:82359
; CHECK-NEXT:   10: 23324
; CHECK-NEXT:   11: 23327 _Z3fibi:25228
; CHECK-NEXT:   15: 11
; CHECK-NEXT:   !Attributes: 2
; CHECK-NEXT:  !Attributes: 2
; CHECK-NEXT:_Z5funcBi:240:13
; CHECK-NEXT: 0: 13
; CHECK-NEXT: 1: 13


; RECOUNT:main:1968621:12
; RECOUNT-NEXT: 2: 24
; RECOUNT-NEXT: 3: 17 _Z5funcAi:7
; RECOUNT-NEXT: 3.1: 10 _Z5funcBi:11
; RECOUNT-NEXT: 3: _Z5funcAi:1467388
; RECOUNT-NEXT:  0: 10
; RECOUNT-NEXT:  3: 24
; RECOUNT-NEXT:  1: _Z8funcLeafi:1467299
; RECOUNT-NEXT:   0: 6
; RECOUNT-NEXT:   1: 6
; RECOUNT-NEXT:   3: 287884
; RECOUNT-NEXT:   4: 287864 _Z3fibi:315608
; RECOUNT-NEXT:   15: 23
; RECOUNT-NEXT:   !Attributes: 6
; RECOUNT-NEXT:  !Attributes: 6
; RECOUNT-NEXT: 3.1: _Z5funcBi:500954
; RECOUNT-NEXT:  0: 19
; RECOUNT-NEXT:  3: 12
; RECOUNT-NEXT:  1: _Z8funcLeafi:500853
; RECOUNT-NEXT:   0: 15
; RECOUNT-NEXT:   1: 15
; RECOUNT-NEXT:   3: 74946
; RECOUNT-NEXT:   4: 74941 _Z3fibi:82359
; RECOUNT-NEXT:   10: 23324
; RECOUNT-NEXT:   11: 23327 _Z3fibi:25228
; RECOUNT-NEXT:   15: 11
; RECOUNT-NEXT:   !Attributes: 6
; RECOUNT-NEXT:  !Attributes: 6
; RECOUNT-NEXT:_Z8funcLeafi:1968152:31
; RECOUNT-NEXT: 0: 21
; RECOUNT-NEXT: 1: 21
; RECOUNT-NEXT: 3: 362830
; RECOUNT-NEXT: 4: 362805 _Z3fibi:397967
; RECOUNT-NEXT: 10: 23324
; RECOUNT-NEXT: 11: 23327 _Z3fibi:25228
; RECOUNT-NEXT: 15: 34
; RECOUNT-NEXT: !Attributes: 2
; RECOUNT-NEXT:_Z5funcAi:1467388:11
; RECOUNT-NEXT: 0: 10
; RECOUNT-NEXT: 3: 24
; RECOUNT-NEXT: 1: _Z8funcLeafi:1467299
; RECOUNT-NEXT:  0: 6
; RECOUNT-NEXT:  1: 6
; RECOUNT-NEXT:  3: 287884
; RECOUNT-NEXT:  4: 287864 _Z3fibi:315608
; RECOUNT-NEXT:  15: 23
; RECOUNT-NEXT:  !Attributes: 6
; RECOUNT-NEXT: !Attributes: 2
; RECOUNT-NEXT:_Z5funcBi:501194:32
; RECOUNT-NEXT: 0: 32
; RECOUNT-NEXT: 1: 13
; RECOUNT-NEXT: 3: 12
; RECOUNT-NEXT: 1: _Z8funcLeafi:500853
; RECOUNT-NEXT:  0: 15
; RECOUNT-NEXT:  1: 15
; RECOUNT-NEXT:  3: 74946
; RECOUNT-NEXT:  4: 74941 _Z3fibi:82359
; RECOUNT-NEXT:  10: 23324
; RECOUNT-NEXT:  11: 23327 _Z3fibi:25228
; RECOUNT-NEXT:  15: 11
; RECOUNT-NEXT:  !Attributes: 6

; PROBE:main:1968621:12
; PROBE-NEXT: 2: 24
; PROBE-NEXT: 3: 17 _Z5funcAi:7
; PROBE-NEXT: 3.1: 10 _Z5funcBi:11
; PROBE-NEXT: 3: _Z5funcAi:1467388
; PROBE-NEXT:  0: 10
; PROBE-NEXT:  3: 24
; PROBE-NEXT:  1: _Z8funcLeafi:1467299
; PROBE-NEXT:   0: 6
; PROBE-NEXT:   1: 6
; PROBE-NEXT:   3: 287884
; PROBE-NEXT:   4: 287864 _Z3fibi:315608
; PROBE-NEXT:   15: 23
; PROBE-NEXT:   !CFGChecksum: 281479271677951
; PROBE-NEXT:   !Attributes: 2
; PROBE-NEXT:  !CFGChecksum: 844530426352218
; PROBE-NEXT:  !Attributes: 2
; PROBE-NEXT: 3.1: _Z5funcBi:500954
; PROBE-NEXT:  0: 19
; PROBE-NEXT:  3: 12
; PROBE-NEXT:  1: _Z8funcLeafi:500853
; PROBE-NEXT:   0: 15
; PROBE-NEXT:   1: 15
; PROBE-NEXT:   3: 74946
; PROBE-NEXT:   4: 74941 _Z3fibi:82359
; PROBE-NEXT:   10: 23324
; PROBE-NEXT:   11: 23327 _Z3fibi:25228
; PROBE-NEXT:   15: 11
; PROBE-NEXT:   !CFGChecksum: 281479271677951
; PROBE-NEXT:   !Attributes: 2
; PROBE-NEXT:  !CFGChecksum: 563022570642068
; PROBE-NEXT:  !Attributes: 2
; PROBE-NEXT: !CFGChecksum: 563125815542069
; PROBE-NEXT:_Z5funcBi:240:13
; PROBE-NEXT: 0: 13
; PROBE-NEXT: 1: 13
; PROBE-NEXT: !CFGChecksum: 563022570642068


; PREINLINE: ProfileSummarySection {{.*}} Flags: {preInlined}


; SUMMARY:      Total functions: 4
; SUMMARY-NEXT: Maximum function count: 32
; SUMMARY-NEXT: Maximum block count: 362830
; SUMMARY-NEXT: Total number of blocks: 16
; SUMMARY-NEXT: Total count: 772562
; SUMMARY-NEXT: Detailed summary:
; SUMMARY-NEXT: 1 blocks with count >= 362830 account for 1 percentage of the total counts.
; SUMMARY-NEXT: 1 blocks with count >= 362830 account for 10 percentage of the total counts.
; SUMMARY-NEXT: 1 blocks with count >= 362830 account for 20 percentage of the total counts.
; SUMMARY-NEXT: 1 blocks with count >= 362830 account for 30 percentage of the total counts.
; SUMMARY-NEXT: 1 blocks with count >= 362830 account for 40 percentage of the total counts.
; SUMMARY-NEXT: 2 blocks with count >= 362805 account for 50 percentage of the total counts.
; SUMMARY-NEXT: 2 blocks with count >= 362805 account for 60 percentage of the total counts.
; SUMMARY-NEXT: 2 blocks with count >= 362805 account for 70 percentage of the total counts.
; SUMMARY-NEXT: 2 blocks with count >= 362805 account for 80 percentage of the total counts.
; SUMMARY-NEXT: 2 blocks with count >= 362805 account for 90 percentage of the total counts.
; SUMMARY-NEXT: 3 blocks with count >= 23327 account for 95 percentage of the total counts.
; SUMMARY-NEXT: 4 blocks with count >= 23324 account for 99 percentage of the total counts.
; SUMMARY-NEXT: 4 blocks with count >= 23324 account for 99.9 percentage of the total counts.
; SUMMARY-NEXT: 11 blocks with count >= 24 account for 99.99 percentage of the total counts.
; SUMMARY-NEXT: 16 blocks with count >= 10 account for 99.999 percentage of the total counts.
; SUMMARY-NEXT: 16 blocks with count >= 10 account for 99.9999 percentage of the total counts.


; SUMMARY-NEST:      Total functions: 4
; SUMMARY-NEST-NEXT: Maximum function count: 32
; SUMMARY-NEST-NEXT: Maximum block count: 362830
; SUMMARY-NEST-NEXT: Total number of blocks: 15
; SUMMARY-NEST-NEXT: Total count: 772504
; SUMMARY-NEST-NEXT: Detailed summary:
; SUMMARY-NEST-NEXT: 1 blocks with count >= 362830 account for 1 percentage of the total counts.
; SUMMARY-NEST-NEXT: 1 blocks with count >= 362830 account for 10 percentage of the total counts.
; SUMMARY-NEST-NEXT: 1 blocks with count >= 362830 account for 20 percentage of the total counts.
; SUMMARY-NEST-NEXT: 1 blocks with count >= 362830 account for 30 percentage of the total counts.
; SUMMARY-NEST-NEXT: 1 blocks with count >= 362830 account for 40 percentage of the total counts.
; SUMMARY-NEST-NEXT: 2 blocks with count >= 362805 account for 50 percentage of the total counts.
; SUMMARY-NEST-NEXT: 2 blocks with count >= 362805 account for 60 percentage of the total counts.
; SUMMARY-NEST-NEXT: 2 blocks with count >= 362805 account for 70 percentage of the total counts.
; SUMMARY-NEST-NEXT: 2 blocks with count >= 362805 account for 80 percentage of the total counts.
; SUMMARY-NEST-NEXT: 2 blocks with count >= 362805 account for 90 percentage of the total counts.
; SUMMARY-NEST-NEXT: 3 blocks with count >= 23327 account for 95 percentage of the total counts.
; SUMMARY-NEST-NEXT: 4 blocks with count >= 23324 account for 99 percentage of the total counts.
; SUMMARY-NEST-NEXT: 4 blocks with count >= 23324 account for 99.9 percentage of the total counts.
; SUMMARY-NEST-NEXT: 10 blocks with count >= 21 account for 99.99 percentage of the total counts.
; SUMMARY-NEST-NEXT: 15 blocks with count >= 10 account for 99.999 percentage of the total counts.
; SUMMARY-NEST-NEXT: 15 blocks with count >= 10 account for 99.9999 percentage of the total counts.