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

Function testEndToEnd

deps/v8/test/mjsunit/tools/tickprocessor.mjs:547–563  ·  view source on GitHub ↗
(dir, sourceFile, ignoredRefOutput, params)

Source from the content-addressed store, hash-verified

545};
546
547async function testEndToEnd(dir, sourceFile, ignoredRefOutput, params) {
548 // This test only works on linux.
549 if (!os?.system) return;
550 if (os.name !== 'linux' && os.name !== 'macos') return;
551 params.platform = os.name;
552 const tmpLogFile= `/var/tmp/${Date.now()}.v8.log`
553 const result = os.system(
554 os.d8Path, ['--prof', `--logfile=${tmpLogFile}`, dir + sourceFile]);
555
556 const tickProcessor = TickProcessor.fromParams(params);
557 // We will not always get the same ticks due to timing on bots,
558 // hence we cannot properly compare output expectations.
559 // Let's just use a dummy file and only test whether we don't throw.
560 const printMonitor = new PrintMonitor(dir + ignoredRefOutput);
561 await tickProcessor.processLogFileInTest(tmpLogFile);
562 tickProcessor.printStatistics();
563}

Callers

nothing calls this directly

Calls 4

nowMethod · 0.80
fromParamsMethod · 0.80
printStatisticsMethod · 0.80
processLogFileInTestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…