| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * @constructor | 6 * @constructor |
| 7 * @param {!WebInspector.Target} target | 7 * @param {!WebInspector.Target} target |
| 8 * @param {!WebInspector.TimelineLifecycleDelegate} delegate | 8 * @param {!WebInspector.TimelineLifecycleDelegate} delegate |
| 9 * @param {!WebInspector.TracingModel} tracingModel | 9 * @param {!WebInspector.TracingModel} tracingModel |
| 10 * @implements {WebInspector.TargetManager.Observer} | 10 * @implements {WebInspector.TargetManager.Observer} |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 startRecording: function(captureCauses, enableJSSampling, captureMemory, cap
turePictures, captureFilmStrip) | 30 startRecording: function(captureCauses, enableJSSampling, captureMemory, cap
turePictures, captureFilmStrip) |
| 31 { | 31 { |
| 32 function disabledByDefault(category) | 32 function disabledByDefault(category) |
| 33 { | 33 { |
| 34 return "disabled-by-default-" + category; | 34 return "disabled-by-default-" + category; |
| 35 } | 35 } |
| 36 var categoriesArray = [ | 36 var categoriesArray = [ |
| 37 "-*", | 37 "-*", |
| 38 "devtools.timeline", | 38 "devtools.timeline", |
| 39 "v8.execute", |
| 39 disabledByDefault("devtools.timeline"), | 40 disabledByDefault("devtools.timeline"), |
| 40 disabledByDefault("devtools.timeline.frame"), | 41 disabledByDefault("devtools.timeline.frame"), |
| 41 WebInspector.TracingModel.TopLevelEventCategory, | 42 WebInspector.TracingModel.TopLevelEventCategory, |
| 42 WebInspector.TimelineModel.Category.Console, | 43 WebInspector.TimelineModel.Category.Console, |
| 43 WebInspector.TimelineModel.Category.UserTiming | 44 WebInspector.TimelineModel.Category.UserTiming |
| 44 ]; | 45 ]; |
| 45 categoriesArray.push(WebInspector.TimelineModel.Category.LatencyInfo) | 46 categoriesArray.push(WebInspector.TimelineModel.Category.LatencyInfo) |
| 46 | 47 |
| 47 if (Runtime.experiments.isEnabled("timelineFlowEvents")) { | 48 if (Runtime.experiments.isEnabled("timelineFlowEvents")) { |
| 48 categoriesArray.push(disabledByDefault("toplevel.flow"), | 49 categoriesArray.push(disabledByDefault("toplevel.flow"), |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 279 |
| 279 /** | 280 /** |
| 280 * @param {number} progress | 281 * @param {number} progress |
| 281 * @override | 282 * @override |
| 282 */ | 283 */ |
| 283 eventsRetrievalProgress: function(progress) | 284 eventsRetrievalProgress: function(progress) |
| 284 { | 285 { |
| 285 this._delegate.loadingProgress(progress); | 286 this._delegate.loadingProgress(progress); |
| 286 } | 287 } |
| 287 } | 288 } |
| OLD | NEW |