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

Method computeTotalWeight

deps/v8/tools/profile.mjs:1190–1196  ·  view source on GitHub ↗

* Computes node's total weight.

()

Source from the content-addressed store, hash-verified

1188 * Computes node's total weight.
1189 */
1190 computeTotalWeight() {
1191 let totalWeight = this.selfWeight;
1192 this.forEachChild(function (child) {
1193 totalWeight += child.computeTotalWeight();
1194 });
1195 return this.totalWeight = totalWeight;
1196 }
1197
1198 /**
1199 * Returns all node's children as an array.

Callers 1

computeTotalWeightsMethod · 0.80

Calls 1

forEachChildMethod · 0.95

Tested by

no test coverage detected