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

Function checkInnerProfile

deps/v8/test/inspector/cpu-profiler/console-profile.js:47–54  ·  view source on GitHub ↗
(profile)

Source from the content-addressed store, hash-verified

45}
46
47function checkInnerProfile(profile)
48{
49 InspectorTest.log("SUCCESS: retrieved '42' profile");
50 if (!findFunctionInProfile(profile.nodes, "collectProfiles"))
51 return InspectorTest.fail("collectProfiles function not found in the profile: " + JSON.stringify(profile, null, 4));
52 InspectorTest.log("SUCCESS: found 'collectProfiles' function in the profile");
53 InspectorTest.completeTest();
54}
55
56function findFunctionInProfile(nodes, functionName)
57{

Callers 1

didCollectProfilesFunction · 0.85

Calls 3

findFunctionInProfileFunction · 0.85
logMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected