| 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(); |