setResourceTimingBufferSize method

void setResourceTimingBufferSize(
  1. int maxSize
)

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

The specification requires the resource timing buffer initially to be 250 or greater.

To clear the browser's performance resource data buffer, use the Performance.clearResourceTimings method.

To get notified when the browser's resource timing buffer is full, listen for the Performance.resourcetimingbufferfull_event event.

Implementation

external void setResourceTimingBufferSize(int maxSize);