Index: Source/devtools/front_end/timeline/TimelinePanel.js |
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js |
index e21f540a26b4fa0113f6e7b91e8101879a20551b..aa0f69c84b0aebc9e854634466aa1c2afed49f13 100644 |
--- a/Source/devtools/front_end/timeline/TimelinePanel.js |
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js |
@@ -744,7 +744,9 @@ WebInspector.TimelinePanel.prototype = { |
_garbageCollectButtonClicked: function() |
{ |
- HeapProfilerAgent.collectGarbage(); |
+ var targets = WebInspector.targetManager.targets(); |
+ for (var i = 0; i < targets.length; ++i) |
+ targets[i].heapProfilerAgent().collectGarbage(); |
}, |
_onClearButtonClick: function() |