MCPcopy Create free account
hub / github.com/nodejs/node / getBreakdown

Method getBreakdown

deps/v8/tools/system-analyzer/timeline.mjs:229–240  ·  view source on GitHub ↗
(keyFunction, collect = false)

Source from the content-addressed store, hash-verified

227 }
228
229 getBreakdown(keyFunction, collect = false) {
230 if (keyFunction || collect) {
231 if (!keyFunction) {
232 keyFunction = each => each.type;
233 }
234 return groupBy(this._values, keyFunction, collect);
235 }
236 if (this._breakdown === undefined) {
237 this._breakdown = groupBy(this._values, each => each.type);
238 }
239 return this._breakdown;
240 }
241
242 depthHistogram() {
243 return this._values.histogram(each => each.depth);

Callers

nothing calls this directly

Calls 1

groupByFunction · 0.90

Tested by

no test coverage detected