Web Inspector: We should have a way to capture heap snapshots programatically.
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Workers / HeapSnapshot / HeapSnapshotWorker.js
index b51b56c..caab549 100644 (file)
@@ -39,10 +39,10 @@ HeapSnapshotWorker = class HeapSnapshotWorker
 
     // Actions
 
-    createSnapshot(snapshotString)
+    createSnapshot(snapshotString, title)
     {
         let objectId = this._nextObjectId++;
-        let snapshot = new HeapSnapshot(objectId, snapshotString);
+        let snapshot = new HeapSnapshot(objectId, snapshotString, title);
         this._objects.set(objectId, snapshot);
         return {objectId, snapshot: snapshot.serialize()};
     }