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

Method getEntriesByName

lib/internal/perf/performance.js:100–110  ·  view source on GitHub ↗
(name, type = undefined)

Source from the content-addressed store, hash-verified

98 }
99
100 getEntriesByName(name, type = undefined) {
101 validateThisInternalField(this, kPerformanceBrand, 'Performance');
102 if (arguments.length === 0) {
103 throw new ERR_MISSING_ARGS('name');
104 }
105 name = `${name}`;
106 if (type !== undefined) {
107 type = `${type}`;
108 }
109 return filterBufferMapByNameAndType(name, type);
110 }
111
112 getEntriesByType(type) {
113 validateThisInternalField(this, kPerformanceBrand, 'Performance');

Calls 1

Tested by

no test coverage detected