node/lib/internal/perf
Chengzhong Wu 798a6edddf
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: https://github.com/nodejs/node/pull/44220
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2022-08-21 10:43:39 +08:00
..
event_loop_delay.js perf_hooks: use `kEmptyObject` 2022-06-11 12:18:14 +02:00
event_loop_utilization.js src: per-environment time origin value 2022-07-16 16:46:40 +08:00
nodetiming.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
observe.js perf_hooks: add resourcetiming buffer limit 2022-08-21 10:43:39 +08:00
performance.js perf_hooks: add resourcetiming buffer limit 2022-08-21 10:43:39 +08:00
performance_entry.js perf_hooks: use arrays to store EntryBuffers 2022-02-20 22:57:31 +00:00
resource_timing.js perf_hooks: add resourcetiming buffer limit 2022-08-21 10:43:39 +08:00
timerify.js perf_hooks: fix function wrapped by `timerify` to work correctly 2022-06-12 11:45:00 +02:00
usertiming.js perf_hooks: add resourcetiming buffer limit 2022-08-21 10:43:39 +08:00
utils.js perf_hooks: refactor perf_hooks for snapshot building 2021-06-28 16:20:12 +08:00