var initialize_HeapSnapshotTest = function() {
+InspectorTest.preloadPanel("profiles");
+
InspectorTest.createHeapSnapshotMockFactories = function() {
InspectorTest.createJSHeapSnapshotMockObject = function()
1, 5, 6, 6, 6, 21, 0], // E (35)
edges: [
// root node edges
- 2, 6, 7, // shortcut 'a' to node 'A'
+ 1, 6, 7, // property 'a' to node 'A'
1, 7, 14, // property 'b' to node 'B'
// A node edges
"property": "property",
"internal": "internal",
"hidden": "hidden",
- "shortcut": "shortcut"
+ "shortcut": "shortcut",
+ "weak": "weak"
};
InspectorTest.HeapSnapshotBuilder = function()
InspectorTest.startProfilerTest = function(callback)
{
- WebInspector.inspectorView.showPanel("profiles");
WebInspector.settings.showAdvancedHeapSnapshotProperties.set(true);
InspectorTest.addResult("Profiler was enabled.");
callback = InspectorTest.safeWrap(callback);
var snapshot = generator();
var profileType = WebInspector.ProfileTypeRegistry.instance.heapSnapshotProfileType;
- function pushGeneratedSnapshot(reportProgress, callback)
+ function pushGeneratedSnapshot(reportProgress, callback2)
{
var profile = profileType.profileBeingRecorded();
if (reportProgress) {
}
snapshot.snapshot.typeId = "HEAP";
profileType._addHeapSnapshotChunk({data: JSON.stringify(snapshot)});
- setTimeout(callback, 0);
+ setTimeout(callback2, 0);
}
InspectorTest.override(HeapProfilerAgent, "takeHeapSnapshot", pushGeneratedSnapshot);
InspectorTest._takeAndOpenSnapshotCallback = callback;