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

Function clearMarkTimings

lib/internal/perf/usertiming.js:239–248  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

237}
238
239function clearMarkTimings(name) {
240 if (name !== undefined) {
241 name = `${name}`;
242 if (nodeTimingReadOnlyAttributes.has(name))
243 throw new ERR_INVALID_ARG_VALUE('name', name);
244 markTimings.delete(name);
245 return;
246 }
247 markTimings.clear();
248}
249
250module.exports = {
251 PerformanceMark,

Callers 1

clearMarksMethod · 0.85

Calls 3

hasMethod · 0.65
deleteMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected