Commit dc0c437
PGO: Run benchmarks for a shorter time, but force GC to run more often.
The PGO profiles don't need to run that long, but they do need to ensure
GC happens a few times to exercise GC-triggered codepaths (e.g. on
`sync.Pool` objects, network packet chunk pools, etc).
This change introduces a flag to force GC to run on a set interval during
CPU profiling, and enables it for PGO benchmark runs. It also reduces the
PGO benchmark time target, since GC is now guaranteed to run a couple of
times.
It also deletes all profiles, in order to force them to be refreshed
with this change in effect.
PiperOrigin-RevId: 7978351981 parent b4259c3 commit dc0c437
File tree
10 files changed
+83
-22
lines changed- runsc
- cmd
- config
- profiles/data
- go1.24.1-linux-amd64_kvm
- go1.24.1-linux-amd64_systrap
- profile
10 files changed
+83
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
| 593 | + | |
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
233 | 243 | | |
234 | 244 | | |
235 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | | - | |
84 | | - | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
86 | 106 | | |
87 | | - | |
| 107 | + | |
88 | 108 | | |
89 | 109 | | |
90 | | - | |
| 110 | + | |
91 | 111 | | |
92 | 112 | | |
93 | | - | |
| 113 | + | |
94 | 114 | | |
95 | 115 | | |
96 | | - | |
| 116 | + | |
97 | 117 | | |
98 | 118 | | |
99 | | - | |
| 119 | + | |
100 | 120 | | |
101 | 121 | | |
102 | 122 | | |
| |||
112 | 132 | | |
113 | 133 | | |
114 | 134 | | |
115 | | - | |
| 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 | + | |
116 | 165 | | |
117 | 166 | | |
118 | 167 | | |
119 | 168 | | |
| 169 | + | |
120 | 170 | | |
121 | 171 | | |
122 | 172 | | |
| |||
127 | 177 | | |
128 | 178 | | |
129 | 179 | | |
130 | | - | |
| 180 | + | |
131 | 181 | | |
132 | 182 | | |
133 | 183 | | |
134 | 184 | | |
| 185 | + | |
135 | 186 | | |
136 | 187 | | |
137 | 188 | | |
138 | 189 | | |
139 | 190 | | |
140 | 191 | | |
141 | 192 | | |
142 | | - | |
| 193 | + | |
143 | 194 | | |
144 | 195 | | |
145 | 196 | | |
| |||
152 | 203 | | |
153 | 204 | | |
154 | 205 | | |
155 | | - | |
| 206 | + | |
156 | 207 | | |
157 | 208 | | |
158 | 209 | | |
159 | 210 | | |
| 211 | + | |
160 | 212 | | |
161 | 213 | | |
162 | 214 | | |
| |||
167 | 219 | | |
168 | 220 | | |
169 | 221 | | |
170 | | - | |
| 222 | + | |
171 | 223 | | |
172 | 224 | | |
173 | 225 | | |
| |||
Lines changed: 0 additions & 1 deletion
This file was deleted.
Binary file not shown.
Lines changed: 0 additions & 1 deletion
This file was deleted.
Binary file not shown.
0 commit comments