Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 457523004: DevTools: Make GC button in timeline to fire gc events in all targets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698