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

Method formatFunctionName

deps/v8/tools/tickprocessor.mjs:1031–1048  ·  view source on GitHub ↗
(funcName)

Source from the content-addressed store, hash-verified

1029 }
1030
1031 formatFunctionName(funcName) {
1032 if (!this.hasSourceMap()) {
1033 return funcName;
1034 }
1035 const lc = this.getLineAndColumn(funcName);
1036 if (lc == null) {
1037 return funcName;
1038 }
1039 // in source maps lines and columns are zero based
1040 const lineNumber = lc.line - 1;
1041 const column = lc.column - 1;
1042 const entry = this.sourceMap.findEntry(lineNumber, column);
1043 const sourceFile = entry[2];
1044 const sourceLine = entry[3] + 1;
1045 const sourceColumn = entry[4] + 1;
1046
1047 return `${sourceFile}:${sourceLine}:${sourceColumn} -> ${funcName}`;
1048 }
1049
1050 printEntries(
1051 profile, totalTicks, nonLibTicks, filterP, callback, printAllTicks) {

Callers 2

printEntriesMethod · 0.95
printHeavyProfileMethod · 0.95

Calls 3

hasSourceMapMethod · 0.95
getLineAndColumnMethod · 0.95
findEntryMethod · 0.45

Tested by

no test coverage detected