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

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

Issue 326693002: Timeline: fix reset logic of TracingTimelineModel & co (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 return true; 702 return true;
703 }, 703 },
704 704
705 _garbageCollectButtonClicked: function() 705 _garbageCollectButtonClicked: function()
706 { 706 {
707 HeapProfilerAgent.collectGarbage(); 707 HeapProfilerAgent.collectGarbage();
708 }, 708 },
709 709
710 _onClearButtonClick: function() 710 _onClearButtonClick: function()
711 { 711 {
712 if (this._tracingModel)
713 this._tracingModel.reset();
712 this._model.reset(); 714 this._model.reset();
713 }, 715 },
714 716
715 _onRecordsCleared: function() 717 _onRecordsCleared: function()
716 { 718 {
717 this.requestWindowTimes(0, Infinity); 719 this.requestWindowTimes(0, Infinity);
718 delete this._selection; 720 delete this._selection;
719 if (this._lazyFrameModel) 721 if (this._lazyFrameModel)
720 this._lazyFrameModel.reset(); 722 this._lazyFrameModel.reset();
721 for (var i = 0; i < this._currentViews.length; ++i) 723 for (var i = 0; i < this._currentViews.length; ++i)
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 * @param {!WebInspector.TimelineModel.Record} record 1418 * @param {!WebInspector.TimelineModel.Record} record
1417 * @return {boolean} 1419 * @return {boolean}
1418 */ 1420 */
1419 accept: function(record) 1421 accept: function(record)
1420 { 1422 {
1421 return !this._hiddenRecords[record.type()]; 1423 return !this._hiddenRecords[record.type()];
1422 }, 1424 },
1423 1425
1424 __proto__: WebInspector.TimelineModel.Filter.prototype 1426 __proto__: WebInspector.TimelineModel.Filter.prototype
1425 } 1427 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698