Index: LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html |
diff --git a/LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html b/LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html |
index 842c67e95e68057f10c3a6e4939b27a947fe4e01..ea6c6e4b262a28b93629f50bae0c7fbd8d7eadb1 100644 |
--- a/LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html |
+++ b/LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html |
@@ -16,9 +16,9 @@ function test() |
WebInspector.showPanel("profiles"); |
WebInspector.panels.profiles._createTemporaryProfile("HEAP"); |
var heapProfileType = WebInspector.panels.profiles.getProfileType("HEAP"); |
- InspectorTest.addSniffer(heapProfileType, "finishHeapSnapshot", finishHeapSnapshot); |
+ heapProfileType.addEventListener(WebInspector.HeapSnapshotProfileType.SnapshotReceived, finishHeapSnapshot); |
InspectorTest.addSniffer(heapProfileType, "_snapshotReceived", snapshotReceived); |
- HeapProfilerAgent.takeHeapSnapshot(function() { }); |
+ heapProfileType._takeHeapSnapshot(function() {}); |
function finishHeapSnapshot(uid) |
{ |