Commit 0e38fba
perf_hooks: add resourcetiming buffer limit
Add WebPerf API `performance.setResourceTimingBufferSize` and event
`'resourcetimingbufferfull'` support.
The resource timing entries are added to the global performance
timeline buffer automatically when using fetch. If users are not
proactively cleaning these events, it can grow without limit. Apply
the https://www.w3.org/TR/timing-entrytypes-registry/ default
resource timing buffer max size so that the buffer can be limited
to not grow indefinitely.
PR-URL: #44220
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>1 parent c0b160c commit 0e38fbaCopy full SHA for 0e38fba
File tree
Expand file treeCollapse file tree
10 files changed
+339
-11
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal
- bootstrap
- perf
- test
- common
- parallel
Expand file treeCollapse file tree
10 files changed
+339
-11
lines changedOpen diff view settings
Collapse file
+23Lines changed: 23 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
308 | 308 | |
309 | 309 | |
310 | 310 | |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
311 | 322 | |
312 | 323 | |
313 | 324 | |
| ||
383 | 394 | |
384 | 395 | |
385 | 396 | |
| 397 | + |
| 398 | + |
| 399 | + |
| 400 | + |
| 401 | + |
| 402 | + |
| 403 | + |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + |
| 408 | + |
386 | 409 | |
387 | 410 | |
388 | 411 | |
|
Collapse file
lib/internal/bootstrap/browser.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/browser.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
73 | 73 | |
74 | 74 | |
75 | 75 | |
| 76 | + |
| 77 | + |
76 | 78 | |
77 | | - |
| 79 | + |
78 | 80 | |
79 | 81 | |
80 | 82 | |
|
Collapse file
lib/internal/perf/observe.js
Copy file name to clipboardExpand all lines: lib/internal/perf/observe.js+79-5Lines changed: 79 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
| 15 | + |
14 | 16 | |
15 | 17 | |
16 | 18 | |
| ||
95 | 97 | |
96 | 98 | |
97 | 99 | |
98 | | - |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
99 | 108 | |
100 | 109 | |
101 | 110 | |
102 | | - |
103 | 111 | |
104 | 112 | |
105 | 113 | |
| ||
332 | 340 | |
333 | 341 | |
334 | 342 | |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
335 | 348 | |
336 | 349 | |
337 | 350 | |
338 | 351 | |
339 | 352 | |
340 | 353 | |
341 | 354 | |
| 355 | + |
342 | 356 | |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
343 | 361 | |
344 | 362 | |
345 | 363 | |
346 | 364 | |
347 | 365 | |
348 | 366 | |
349 | | - |
350 | | - |
351 | 367 | |
352 | 368 | |
353 | 369 | |
354 | 370 | |
355 | 371 | |
356 | 372 | |
357 | 373 | |
358 | | - |
| 374 | + |
359 | 375 | |
360 | 376 | |
361 | 377 | |
| ||
372 | 388 | |
373 | 389 | |
374 | 390 | |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
| 395 | + |
| 396 | + |
| 397 | + |
| 398 | + |
| 399 | + |
| 400 | + |
| 401 | + |
| 402 | + |
| 403 | + |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + |
| 408 | + |
| 409 | + |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
| 419 | + |
| 420 | + |
| 421 | + |
| 422 | + |
| 423 | + |
| 424 | + |
| 425 | + |
| 426 | + |
| 427 | + |
| 428 | + |
| 429 | + |
| 430 | + |
| 431 | + |
| 432 | + |
| 433 | + |
| 434 | + |
| 435 | + |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
375 | 444 | |
376 | 445 | |
377 | 446 | |
| ||
492 | 561 | |
493 | 562 | |
494 | 563 | |
| 564 | + |
| 565 | + |
| 566 | + |
| 567 | + |
| 568 | + |
495 | 569 | |
Collapse file
lib/internal/perf/performance.js
Copy file name to clipboardExpand all lines: lib/internal/perf/performance.js+22-1Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
| 19 | + |
18 | 20 | |
19 | 21 | |
20 | 22 | |
| ||
29 | 31 | |
30 | 32 | |
31 | 33 | |
| 34 | + |
| 35 | + |
32 | 36 | |
33 | 37 | |
34 | 38 | |
| ||
190 | 194 | |
191 | 195 | |
192 | 196 | |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
193 | 203 | |
194 | 204 | |
195 | 205 | |
| ||
223 | 233 | |
224 | 234 | |
225 | 235 | |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
226 | 246 | |
227 | | - |
| 247 | + |
| 248 | + |
228 | 249 | |
229 | 250 | |
Collapse file
lib/internal/perf/resource_timing.js
Copy file name to clipboardExpand all lines: lib/internal/perf/resource_timing.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | 10 | |
| ||
174 | 174 | |
175 | 175 | |
176 | 176 | |
| 177 | + |
177 | 178 | |
178 | 179 | |
179 | 180 | |
|
Collapse file
lib/internal/perf/usertiming.js
Copy file name to clipboardExpand all lines: lib/internal/perf/usertiming.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
| ||
97 | 97 | |
98 | 98 | |
99 | 99 | |
| 100 | + |
100 | 101 | |
101 | 102 | |
102 | 103 | |
| ||
161 | 162 | |
162 | 163 | |
163 | 164 | |
| 165 | + |
164 | 166 | |
165 | 167 | |
166 | 168 | |
|
Collapse file
+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
22 | 25 | |
23 | 26 | |
24 | 27 | |
| ||
27 | 30 | |
28 | 31 | |
29 | 32 | |
| 33 | + |
30 | 34 | |
31 | 35 | |
32 | 36 | |
| ||
35 | 39 | |
36 | 40 | |
37 | 41 | |
38 | | - |
| 42 | + |
39 | 43 | |
40 | 44 | |
41 | 45 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
289 | 289 | |
290 | 290 | |
291 | 291 | |
| 292 | + |
| 293 | + |
| 294 | + |
292 | 295 | |
293 | 296 | |
294 | 297 | |
|
0 commit comments