MCPcopy Index your code
hub / github.com/nodejs/node / setResourceTimingBufferSize

Method setResourceTimingBufferSize

lib/internal/perf/performance.js:142–152  ·  view source on GitHub ↗
(maxSize)

Source from the content-addressed store, hash-verified

140 }
141
142 setResourceTimingBufferSize(maxSize) {
143 validateThisInternalField(this, kPerformanceBrand, 'Performance');
144 if (arguments.length === 0) {
145 throw new ERR_MISSING_ARGS('maxSize');
146 }
147 maxSize = converters['unsigned long'](
148 maxSize,
149 { __proto__: null, context: 'maxSize' },
150 );
151 return setResourceTimingBufferSize(maxSize);
152 }
153
154 get timeOrigin() {
155 validateThisInternalField(this, kPerformanceBrand, 'Performance');

Callers 4

mainFunction · 0.80
mainFunction · 0.80
clearBufferAndSetSizeFunction · 0.80

Calls 1

Tested by

no test coverage detected