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

Method formatProfileEntry

deps/v8/tools/system-analyzer/processor.mjs:512–521  ·  view source on GitHub ↗
(profileEntry, line, column)

Source from the content-addressed store, hash-verified

510 }
511
512 formatProfileEntry(profileEntry, line, column) {
513 if (!profileEntry) return '<unknown>';
514 if (profileEntry.type === 'Builtin') return profileEntry.name;
515 const name = profileEntry.sfi.getName();
516 const array = this._formatPCRegexp.exec(name);
517 const formatted =
518 (array === null) ? name : profileEntry.getState() + array[1];
519 if (line === undefined || column === undefined) return formatted;
520 return `${formatted}:${line}:${column}`;
521 }
522
523 getProfileEntryScript(profileEntry) {
524 if (!profileEntry) return undefined;

Callers 2

processPropertyICMethod · 0.95
getProfileEntryScriptMethod · 0.95

Calls 3

getStateMethod · 0.80
getNameMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected