Web Inspector: We should have a way to capture heap snapshots programatically.
[WebKit-https.git] / Source / WebCore / page / PageConsoleClient.cpp
index 1164e00..5cfa97b 100644 (file)
@@ -195,6 +195,11 @@ void PageConsoleClient::profileEnd(JSC::ExecState* exec, const String& title)
         m_profiles.append(WTFMove(profile));
 }
 
+void PageConsoleClient::takeHeapSnapshot(JSC::ExecState*, const String& title)
+{
+    InspectorInstrumentation::takeHeapSnapshot(m_page.mainFrame(), title);
+}
+
 void PageConsoleClient::time(JSC::ExecState*, const String& title)
 {
     InspectorInstrumentation::startConsoleTiming(m_page.mainFrame(), title);