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

Method getTreeProfile_

deps/v8/tools/profile.mjs:776–785  ·  view source on GitHub ↗

* Helper function for calculating a tree profile. * * @param {Profile.CallTree} tree Call tree. * @param {string} opt_label Node label.

(tree, opt_label)

Source from the content-addressed store, hash-verified

774 * @param {string} opt_label Node label.
775 */
776 getTreeProfile_(tree, opt_label) {
777 if (!opt_label) {
778 tree.computeTotalWeights();
779 return tree;
780 } else {
781 const subTree = tree.cloneSubtree(opt_label);
782 subTree.computeTotalWeights();
783 return subTree;
784 }
785 }
786
787 /**
788 * Calculates a flat profile of callees starting from a node with

Callers 2

getTopDownProfileMethod · 0.95
getBottomUpProfileMethod · 0.95

Calls 2

computeTotalWeightsMethod · 0.80
cloneSubtreeMethod · 0.80

Tested by

no test coverage detected