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

Function didCollectProfiles

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

Source from the content-addressed store, hash-verified

32});
33
34function didCollectProfiles(messageObject)
35{
36 if (headers.length !== 2)
37 return InspectorTest.fail("Cannot retrive headers: " + JSON.stringify(messageObject, null, 4));
38 for (var i = 0; i < headers.length; i++) {
39 if (headers[i].title === "42") {
40 checkInnerProfile(headers[i].profile);
41 return;
42 }
43 }
44 InspectorTest.fail("Cannot find '42' profile header");
45}
46
47function checkInnerProfile(profile)
48{

Callers

nothing calls this directly

Calls 2

checkInnerProfileFunction · 0.85
failMethod · 0.45

Tested by

no test coverage detected