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

Method printLine

deps/v8/tools/tickprocessor.mjs:989–997  ·  view source on GitHub ↗
(
    entry, ticks, totalTicks, nonLibTicks)

Source from the content-addressed store, hash-verified

987 }
988
989 printLine(
990 entry, ticks, totalTicks, nonLibTicks) {
991 const pct = ticks * 100 / totalTicks;
992 const nonLibPct = nonLibTicks != null
993 ? `${(ticks * 100 / nonLibTicks).toFixed(1).toString().padStart(5)}% `
994 : ' ';
995 print(`${` ${ticks.toString().padStart(5)} ` +
996 pct.toFixed(1).toString().padStart(5)}% ${nonLibPct}${entry}`);
997 }
998
999 printHeavyProfHeader() {
1000 print('\n [Bottom up (heavy) profile]:');

Callers 2

printStatisticsMethod · 0.95
printEntriesMethod · 0.95

Calls 2

printFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected