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

Method getProfileEntryScript

deps/v8/tools/system-analyzer/processor.mjs:523–538  ·  view source on GitHub ↗
(profileEntry)

Source from the content-addressed store, hash-verified

521 }
522
523 getProfileEntryScript(profileEntry) {
524 if (!profileEntry) return undefined;
525 if (profileEntry.type === 'Builtin') return undefined;
526 const script = profileEntry.source?.script;
527 if (script !== undefined) return script;
528 let fileName;
529 if (profileEntry.type === 'SHARED_LIB') {
530 fileName = profileEntry.name;
531 } else {
532 // Slow path, try to get the script from the url:
533 const fnName = this.formatProfileEntry(profileEntry);
534 let parts = fnName.split(' ');
535 fileName = parts[parts.length - 1];
536 }
537 return this.getScript(fileName);
538 }
539
540 processMap(type, time, from, to, pc, line, column, reason, name) {
541 this._lastTimestamp = time;

Callers 4

processCodeDeoptMethod · 0.95
addSourcePositionMethod · 0.95
processPropertyICMethod · 0.95
processMapMethod · 0.95

Calls 3

formatProfileEntryMethod · 0.95
getScriptMethod · 0.95
splitMethod · 0.45

Tested by

no test coverage detected