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

Method record

lib/internal/histogram.js:284–295  ·  view source on GitHub ↗

* @param {number|bigint} val * @returns {void}

(val)

Source from the content-addressed store, hash-verified

282 * @returns {void}
283 */
284 record(val) {
285 if (this[kRecordable] === undefined)
286 throw new ERR_INVALID_THIS('RecordableHistogram');
287 if (typeof val === 'bigint') {
288 this[kHandle]?.record(val);
289 return;
290 }
291
292 validateInteger(val, 'val', 1);
293
294 this[kHandle]?.record(val);
295 }
296
297 /**
298 * @returns {void}

Callers 1

processCompleteFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected