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

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

Issue 213003002: DevTools: allow whitelist of timeline events to be pushed live although in bufferEvent mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Same with front-end Created 6 years, 9 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 this._overviewPane.setOverviewControl(this._overviewControl); 554 this._overviewPane.setOverviewControl(this._overviewControl);
555 this._updateSelectionDetails(); 555 this._updateSelectionDetails();
556 }, 556 },
557 557
558 /** 558 /**
559 * @param {boolean} userInitiated 559 * @param {boolean} userInitiated
560 */ 560 */
561 _startRecording: function(userInitiated) 561 _startRecording: function(userInitiated)
562 { 562 {
563 this._userInitiatedRecording = userInitiated; 563 this._userInitiatedRecording = userInitiated;
564 this._model.startRecording(true); 564 this._model.startRecording();
565 for (var mode in WebInspector.TimelinePanel.Mode) 565 for (var mode in WebInspector.TimelinePanel.Mode)
566 this._viewsForMode(mode).overviewView.timelineStarted(); 566 this._viewsForMode(mode).overviewView.timelineStarted();
567 567
568 if (userInitiated) 568 if (userInitiated)
569 WebInspector.userMetrics.TimelineStarted.record(); 569 WebInspector.userMetrics.TimelineStarted.record();
570 }, 570 },
571 571
572 _stopRecording: function() 572 _stopRecording: function()
573 { 573 {
574 this._userInitiatedRecording = false; 574 this._userInitiatedRecording = false;
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 * @param {!WebInspector.TimelineModel.Record} record 1122 * @param {!WebInspector.TimelineModel.Record} record
1123 * @return {boolean} 1123 * @return {boolean}
1124 */ 1124 */
1125 accept: function(record) 1125 accept: function(record)
1126 { 1126 {
1127 return !this._hiddenRecords[record.type]; 1127 return !this._hiddenRecords[record.type];
1128 }, 1128 },
1129 1129
1130 __proto__: WebInspector.TimelineModel.Filter.prototype 1130 __proto__: WebInspector.TimelineModel.Filter.prototype
1131 } 1131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698