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

Method addPath

deps/v8/tools/profile.mjs:1048–1056  ·  view source on GitHub ↗

* Adds the specified call path, constructing nodes as necessary. * * @param {string[]} path Call path.

(path)

Source from the content-addressed store, hash-verified

1046 * @param {string[]} path Call path.
1047 */
1048 addPath(path) {
1049 if (path.length == 0) return;
1050 let curr = this.root_;
1051 for (let i = 0; i < path.length; ++i) {
1052 curr = curr.findOrAddChild(path[i]);
1053 }
1054 curr.selfWeight++;
1055 this.totalsComputed_ = false;
1056 }
1057
1058 /**
1059 * Finds an immediate child of the specified parent with the specified

Callers 1

recordTickMethod · 0.80

Calls 1

findOrAddChildMethod · 0.45

Tested by

no test coverage detected