OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @implements {UI.ActionDelegate} | 6 * @implements {UI.ActionDelegate} |
7 */ | 7 */ |
8 Components.GCActionDelegate = class { | 8 Main.GCActionDelegate = class { |
9 /** | 9 /** |
10 * @override | 10 * @override |
11 * @param {!UI.Context} context | 11 * @param {!UI.Context} context |
12 * @param {string} actionId | 12 * @param {string} actionId |
13 * @return {boolean} | 13 * @return {boolean} |
14 */ | 14 */ |
15 handleAction(context, actionId) { | 15 handleAction(context, actionId) { |
16 SDK.targetManager.targets().forEach(target => target.heapProfilerAgent().col
lectGarbage()); | 16 SDK.targetManager.targets().forEach(target => target.heapProfilerAgent().col
lectGarbage()); |
17 return true; | 17 return true; |
18 } | 18 } |
19 }; | 19 }; |
OLD | NEW |