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

Function assertNodeWeights

deps/v8/test/mjsunit/tools/profile.mjs:187–193  ·  view source on GitHub ↗
(root, path, selfTicks, totalTicks)

Source from the content-addressed store, hash-verified

185
186
187function assertNodeWeights(root, path, selfTicks, totalTicks) {
188 var node = root.descendToChild(path);
189 var stack = stackToString(path);
190 assertNotNull(node, 'node not found: ' + stack);
191 assertEquals(selfTicks, node.selfWeight, 'self of ' + stack);
192 assertEquals(totalTicks, node.totalWeight, 'total of ' + stack);
193};
194
195
196(function testTopDownRootProfileTicks() {

Callers 1

profile.mjsFile · 0.85

Calls 4

stackToStringFunction · 0.85
assertNotNullFunction · 0.85
descendToChildMethod · 0.80
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…