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

Function addToCollection

deps/v8/tools/profview/profile-utils.js:531–540  ·  view source on GitHub ↗
(collection, code)

Source from the content-addressed store, hash-verified

529 return { count : 0, functions : [], functionTable : [] };
530 }
531 function addToCollection(collection, code) {
532 collection.count++;
533 let funcData = collection.functionTable[code.func];
534 if (!funcData) {
535 funcData = { f : file.functions[code.func], instances : [] };
536 collection.functionTable[code.func] = funcData;
537 collection.functions.push(funcData);
538 }
539 funcData.instances.push(code);
540 }
541
542 let functionCount = 0;
543 let baselineFunctionCount = 0;

Callers 1

computeOptimizationStatsFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected