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

Method finalize

deps/v8/tools/parse-processor.mjs:642–657  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

640 }
641
642 finalize() {
643 this.lastParseEventTimestamp = Math.max(
644 this.preparseTimestamp + this.preparseDuration,
645 this.parseTimestamp + this.parseDuration,
646 this.resolutionTimestamp + this.resolutionDuration);
647 if (!(this.lastParseEventTimestamp > 0)) this.lastParseEventTimestamp = 0;
648
649 this.lastEventTimestamp =
650 Math.max(this.lastParseEventTimestamp, this.executionTimestamp);
651 if (!(this.lastEventTimestamp > 0)) this.lastEventTimestamp = 0;
652
653 this.ownBytes = this.nested.reduce(
654 (bytes, each) => bytes - each.getBytes(), this.getBytes());
655
656 super.finalize();
657 }
658
659 getMetricBytes(name) {
660 if (name == 'lazyCompileTimestamp') return this.getOwnBytes();

Callers

nothing calls this directly

Calls 5

getBytesMethod · 0.95
reduceMethod · 0.80
maxMethod · 0.45
getBytesMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected