OLD | NEW |
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 this._resetProcessingState(); | 156 this._resetProcessingState(); |
157 | 157 |
158 this._inspectedTargetEvents.sort(WebInspector.TracingModel.Event.compare
StartTime); | 158 this._inspectedTargetEvents.sort(WebInspector.TracingModel.Event.compare
StartTime); |
159 | 159 |
160 this._buildTimelineRecords(); | 160 this._buildTimelineRecords(); |
161 this.dispatchEventToListeners(WebInspector.TracingTimelineModel.Events.T
racingComplete); | 161 this.dispatchEventToListeners(WebInspector.TracingTimelineModel.Events.T
racingComplete); |
162 this.dispatchEventToListeners(WebInspector.TimelineModel.Events.Recordin
gStopped); | 162 this.dispatchEventToListeners(WebInspector.TimelineModel.Events.Recordin
gStopped); |
163 }, | 163 }, |
164 | 164 |
165 /** | 165 /** |
166 * @return {?number} | 166 * @return {number} |
167 */ | 167 */ |
168 minimumRecordTime: function() | 168 minimumRecordTime: function() |
169 { | 169 { |
170 return this._tracingModel.minimumRecordTime(); | 170 return this._tracingModel.minimumRecordTime(); |
171 }, | 171 }, |
172 | 172 |
173 /** | 173 /** |
174 * @return {?number} | 174 * @return {number} |
175 */ | 175 */ |
176 maximumRecordTime: function() | 176 maximumRecordTime: function() |
177 { | 177 { |
178 return this._tracingModel.maximumRecordTime(); | 178 return this._tracingModel.maximumRecordTime(); |
179 }, | 179 }, |
180 | 180 |
181 /** | 181 /** |
182 * @return {!Array.<!WebInspector.TracingModel.Event>} | 182 * @return {!Array.<!WebInspector.TracingModel.Event>} |
183 */ | 183 */ |
184 inspectedTargetEvents: function() | 184 inspectedTargetEvents: function() |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 { | 636 { |
637 var tokens = [this.title()]; | 637 var tokens = [this.title()]; |
638 var data = this._event.args.data; | 638 var data = this._event.args.data; |
639 if (data) { | 639 if (data) { |
640 for (var key in data) | 640 for (var key in data) |
641 tokens.push(data[key]); | 641 tokens.push(data[key]); |
642 } | 642 } |
643 return regExp.test(tokens.join("|")); | 643 return regExp.test(tokens.join("|")); |
644 } | 644 } |
645 } | 645 } |
OLD | NEW |