()
| 279 | } |
| 280 | |
| 281 | async finalize() { |
| 282 | await this._chunkConsumer.consumeAll(); |
| 283 | if (this._profile.warnings.size > 0) { |
| 284 | console.warn('Found profiler warnings:', this._profile.warnings); |
| 285 | } |
| 286 | // TODO(cbruni): print stats; |
| 287 | this._mapTimeline.transitions = new Map(); |
| 288 | let id = 0; |
| 289 | this._mapTimeline.forEach(map => { |
| 290 | if (map.isRoot()) id = map.finalizeRootMap(id + 1); |
| 291 | if (map.edge && map.edge.name) { |
| 292 | const edge = map.edge; |
| 293 | const list = this._mapTimeline.transitions.get(edge.name); |
| 294 | if (list === undefined) { |
| 295 | this._mapTimeline.transitions.set(edge.name, [edge]); |
| 296 | } else { |
| 297 | list.push(edge); |
| 298 | } |
| 299 | } |
| 300 | }); |
| 301 | } |
| 302 | |
| 303 | processV8Version(majorVersion, minorVersion) { |
| 304 | if ((majorVersion == this.MAJOR_VERSION && |
no test coverage detected