MCPcopy Create free account
hub / github.com/nodejs/node / addCategory

Function addCategory

deps/v8/tools/profview/profile-utils.js:268–274  ·  view source on GitHub ↗
(name, types)

Source from the content-addressed store, hash-verified

266 let root = createEmptyNode("root");
267 let categories = {};
268 function addCategory(name, types) {
269 let n = createEmptyNode(name);
270 for (let i = 0; i < types.length; i++) {
271 categories[types[i]] = n;
272 }
273 root.children.push(n);
274 }
275 addCategory("JS Ignition", [ "JS_IGNITION", "BC" ]);
276 addCategory("JS Sparkplug", [ "JS_SPARKPLUG" ]);
277 addCategory("JS Maglev", [ "JS_MAGLEV" ]);

Callers 1

Calls 2

createEmptyNodeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected