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

Function addFrameToFrameList

deps/v8/tools/profview/profile-utils.js:136–145  ·  view source on GitHub ↗
(paths, pathIndex, depth)

Source from the content-addressed store, hash-verified

134
135// The following function helps to encode such triplets.
136function addFrameToFrameList(paths, pathIndex, depth) {
137 // Try to combine with the previous code run.
138 if (paths.length > 0 &&
139 paths[paths.length - 3] + 1 === pathIndex &&
140 paths[paths.length - 2] === depth) {
141 paths[paths.length - 1]++;
142 } else {
143 paths.push(pathIndex, depth, 1);
144 }
145}
146
147function findNextFrame(file, stack, stackPos, step, filter) {
148 let codeId = -1;

Callers 2

addOrUpdateChildNodeFunction · 0.85
addStackMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…