| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |