Commit 4516c3f3 authored by sergeyv@chromium.org's avatar sergeyv@chromium.org

DevTools: Make GC button in timeline to fire gc events in all targets

BUG=

Review URL: https://codereview.chromium.org/457523004

git-svn-id: svn://svn.chromium.org/blink/trunk@180148 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5769c90b
...@@ -720,7 +720,9 @@ WebInspector.TimelinePanel.prototype = { ...@@ -720,7 +720,9 @@ WebInspector.TimelinePanel.prototype = {
_garbageCollectButtonClicked: function() _garbageCollectButtonClicked: function()
{ {
HeapProfilerAgent.collectGarbage(); var targets = WebInspector.targetManager.targets();
for (var i = 0; i < targets.length; ++i)
targets[i].heapProfilerAgent().collectGarbage();
}, },
_onClearButtonClick: function() _onClearButtonClick: function()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment