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

Function findNextFrame

deps/v8/tools/profview/profile-utils.js:147–158  ·  view source on GitHub ↗
(file, stack, stackPos, step, filter)

Source from the content-addressed store, hash-verified

145}
146
147function findNextFrame(file, stack, stackPos, step, filter) {
148 let codeId = -1;
149 let code = null;
150 while (stackPos >= 0 && stackPos < stack.length) {
151 codeId = stack[stackPos];
152 code = codeId >= 0 ? file.code[codeId] : undefined;
153
154 if (!filter || filter(code?.type, code?.kind)) return stackPos;
155 stackPos += step;
156 }
157 return -1;
158}
159
160function addOrUpdateChildNode(parent, file, stackIndex, stackPos, ascending) {
161 if (stackPos === -1) {

Callers 4

expandTreeNodeFunction · 0.85
addStackMethod · 0.85
addStackMethod · 0.85
addStackMethod · 0.85

Calls 1

filterFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…