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

Method processLogFile

deps/v8/tools/system-analyzer/processor.mjs:263–279  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

261 }
262
263 async processLogFile(fileName) {
264 this.collectEntries = true;
265 this.lastLogFileName_ = fileName;
266 let i = 1;
267 let line;
268 try {
269 while (line = readline()) {
270 await this.processLogLine(line);
271 i++;
272 }
273 } catch (e) {
274 console.error(
275 `Error occurred during parsing line ${i}` +
276 ', trying to continue: ' + e);
277 }
278 this.finalize();
279 }
280
281 async finalize() {
282 await this._chunkConsumer.consumeAll();

Callers

nothing calls this directly

Calls 4

finalizeMethod · 0.95
readlineFunction · 0.85
processLogLineMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected