setResourceTimingBufferSize

The setResourceTimingBufferSize() method sets the desired size of the browser's resource timing buffer which stores the 'resource' performance entries.

MDN Reference