diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 69c27310944db9..f59e78eb263840 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -312,6 +312,17 @@ added: v8.5.0 Returns the current high resolution millisecond timestamp, where 0 represents the start of the current `node` process. +### `performance.setResourceTimingBufferSize(maxSize)` + + + +Sets the global performance resource timing buffer size to the specified number +of "resource" type performance entry objects. + +By default the max buffer size is set to 250. + ### `performance.timeOrigin` + +The `'resourcetimingbufferfull'` event is fired when the global performance +resource timing buffer is full. Adjust resource timing buffer size with +`performance.setResourceTimingBufferSize()` or clear the buffer with +`performance.clearResourceTimings()` in the event listener to allow +more entries to be added to the performance timeline buffer. + ## Class: `PerformanceEntry`