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

Method measure

lib/internal/perf/performance.js:129–135  ·  view source on GitHub ↗
(name, startOrMeasureOptions = kEmptyObject, endMark = undefined)

Source from the content-addressed store, hash-verified

127 }
128
129 measure(name, startOrMeasureOptions = kEmptyObject, endMark = undefined) {
130 validateThisInternalField(this, kPerformanceBrand, 'Performance');
131 if (arguments.length === 0) {
132 throw new ERR_MISSING_ARGS('name');
133 }
134 return measure(name, startOrMeasureOptions, endMark);
135 }
136
137 now() {
138 validateThisInternalField(this, kPerformanceBrand, 'Performance');

Calls 1

measureFunction · 0.70

Tested by 1

testFunction · 0.64