OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 return true; | 737 return true; |
738 if (this._recordingInProgress()) | 738 if (this._recordingInProgress()) |
739 this._stopRecording(); | 739 this._stopRecording(); |
740 else | 740 else |
741 this._startRecording(true); | 741 this._startRecording(true); |
742 return true; | 742 return true; |
743 }, | 743 }, |
744 | 744 |
745 _garbageCollectButtonClicked: function() | 745 _garbageCollectButtonClicked: function() |
746 { | 746 { |
747 HeapProfilerAgent.collectGarbage(); | 747 var targets = WebInspector.targetManager.targets(); |
| 748 for (var i = 0; i < targets.length; ++i) |
| 749 targets[i].heapProfilerAgent().collectGarbage(); |
748 }, | 750 }, |
749 | 751 |
750 _onClearButtonClick: function() | 752 _onClearButtonClick: function() |
751 { | 753 { |
752 if (this._tracingModel) | 754 if (this._tracingModel) |
753 this._tracingModel.reset(); | 755 this._tracingModel.reset(); |
754 this._model.reset(); | 756 this._model.reset(); |
755 }, | 757 }, |
756 | 758 |
757 _onRecordsCleared: function() | 759 _onRecordsCleared: function() |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 * @param {!WebInspector.TimelineModel.Record} record | 1446 * @param {!WebInspector.TimelineModel.Record} record |
1445 * @return {boolean} | 1447 * @return {boolean} |
1446 */ | 1448 */ |
1447 accept: function(record) | 1449 accept: function(record) |
1448 { | 1450 { |
1449 return !this._regex || this._uiUtils.testContentMatching(record, this._r
egex); | 1451 return !this._regex || this._uiUtils.testContentMatching(record, this._r
egex); |
1450 }, | 1452 }, |
1451 | 1453 |
1452 __proto__: WebInspector.TimelineModel.Filter.prototype | 1454 __proto__: WebInspector.TimelineModel.Filter.prototype |
1453 } | 1455 } |
OLD | NEW |