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

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

Issue 322783002: Initialize min/max record time to 0 instead of -1 or null (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « Source/devtools/front_end/timeline/TracingModel.js ('k') | 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * @param {!WebInspector.TracingModel} tracingModel 6 * @param {!WebInspector.TracingModel} tracingModel
7 * @constructor 7 * @constructor
8 * @extends {WebInspector.TimelineModel} 8 * @extends {WebInspector.TimelineModel}
9 */ 9 */
10 WebInspector.TracingTimelineModel = function(tracingModel) 10 WebInspector.TracingTimelineModel = function(tracingModel)
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 162 }
163 this._resetProcessingState(); 163 this._resetProcessingState();
164 164
165 this._inspectedTargetEvents.sort(WebInspector.TracingModel.Event.compare StartTime); 165 this._inspectedTargetEvents.sort(WebInspector.TracingModel.Event.compare StartTime);
166 166
167 this._buildTimelineRecords(); 167 this._buildTimelineRecords();
168 this.dispatchEventToListeners(WebInspector.TimelineModel.Events.Recordin gStopped); 168 this.dispatchEventToListeners(WebInspector.TimelineModel.Events.Recordin gStopped);
169 }, 169 },
170 170
171 /** 171 /**
172 * @return {?number} 172 * @return {number}
173 */ 173 */
174 minimumRecordTime: function() 174 minimumRecordTime: function()
175 { 175 {
176 return this._tracingModel.minimumRecordTime(); 176 return this._tracingModel.minimumRecordTime();
177 }, 177 },
178 178
179 /** 179 /**
180 * @return {?number} 180 * @return {number}
181 */ 181 */
182 maximumRecordTime: function() 182 maximumRecordTime: function()
183 { 183 {
184 return this._tracingModel.maximumRecordTime(); 184 return this._tracingModel.maximumRecordTime();
185 }, 185 },
186 186
187 /** 187 /**
188 * @return {!Array.<!WebInspector.TracingModel.Event>} 188 * @return {!Array.<!WebInspector.TracingModel.Event>}
189 */ 189 */
190 inspectedTargetEvents: function() 190 inspectedTargetEvents: function()
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 { 642 {
643 var tokens = [this.title()]; 643 var tokens = [this.title()];
644 var data = this._event.args.data; 644 var data = this._event.args.data;
645 if (data) { 645 if (data) {
646 for (var key in data) 646 for (var key in data)
647 tokens.push(data[key]); 647 tokens.push(data[key]);
648 } 648 }
649 return regExp.test(tokens.join("|")); 649 return regExp.test(tokens.join("|"));
650 } 650 }
651 } 651 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TracingModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698