var gotLastSeenObjectIdEvent = false;
var gotHeapStatsUpdateEvent = false;
- var gotHeapProfilerHeader = false;
function trackingStarted()
{
InspectorTest.log("SUCCESS: tracking started");
InspectorTest.log("SUCCESS: heapStatsUpdate arrived");
if (gotLastSeenObjectIdEvent)
InspectorTest.log("SUCCESS: lastSeenObjectId arrived");
- if (gotHeapProfilerHeader)
- InspectorTest.log("SUCCESS: addProfileHeader arrived");
InspectorTest.log("SUCCESS: tracking stopped");
InspectorTest.completeTest();
}
gotHeapStatsUpdateEvent = true;
}
- InspectorTest.eventHandler["HeapProfiler.addProfileHeader"] = function(messageObject)
- {
- gotHeapProfilerHeader = true;
- }
-
InspectorTest.sendCommand("HeapProfiler.startTrackingHeapObjects", {}, trackingStarted);
//@ sourceURL=heap-objects-tracking.html
}