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

Function openFile

lib/internal/v8_prof_polyfill.js:95–107  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

93let line = '';
94
95function openFile(filename) {
96 logFile = filename;
97 try {
98 fd = fs.openSync(logFile, 'r');
99 } catch (e) {
100 console.error(`Cannot access log file: ${logFile}`);
101 console.error('Please provide a valid isolate file as the final argument.');
102 throw e;
103 }
104
105 const message = versionCheck(peekline(), process.versions.v8);
106 if (message) console.log(message);
107}
108
109function peekline() {
110 const s = readline();

Callers 1

prof_process.jsFile · 0.50

Calls 5

versionCheckFunction · 0.85
peeklineFunction · 0.85
openSyncMethod · 0.45
errorMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…