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

Method finalize

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

Source from the content-addressed store, hash-verified

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 &&

Callers 2

processLogFileMethod · 0.95
handleFileUploadEndMethod · 0.45

Calls 8

consumeAllMethod · 0.80
warnMethod · 0.80
isRootMethod · 0.80
finalizeRootMapMethod · 0.80
forEachMethod · 0.65
getMethod · 0.65
setMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected