| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 WebInspector.TracingModel.TopLevelEventCategory, | 44 WebInspector.TracingModel.TopLevelEventCategory, |
| 45 WebInspector.TimelineModel.Category.Console, | 45 WebInspector.TimelineModel.Category.Console, |
| 46 WebInspector.TimelineModel.Category.UserTiming | 46 WebInspector.TimelineModel.Category.UserTiming |
| 47 ]; | 47 ]; |
| 48 categoriesArray.push(WebInspector.TimelineModel.Category.LatencyInfo); | 48 categoriesArray.push(WebInspector.TimelineModel.Category.LatencyInfo); |
| 49 | 49 |
| 50 if (Runtime.experiments.isEnabled("timelineFlowEvents")) { | 50 if (Runtime.experiments.isEnabled("timelineFlowEvents")) { |
| 51 categoriesArray.push(disabledByDefault("toplevel.flow"), | 51 categoriesArray.push(disabledByDefault("toplevel.flow"), |
| 52 disabledByDefault("ipc.flow")); | 52 disabledByDefault("ipc.flow")); |
| 53 } | 53 } |
| 54 if (Runtime.experiments.isEnabled("timelineV8RuntimeCallStats") && enabl
eJSSampling) |
| 55 categoriesArray.push(disabledByDefault("v8.runtime_stats")); |
| 54 if (Runtime.experiments.isEnabled("timelineTracingJSProfile") && enableJ
SSampling) { | 56 if (Runtime.experiments.isEnabled("timelineTracingJSProfile") && enableJ
SSampling) { |
| 55 categoriesArray.push(disabledByDefault("v8.cpu_profiler")); | 57 categoriesArray.push(disabledByDefault("v8.cpu_profiler")); |
| 56 if (WebInspector.moduleSetting("highResolutionCpuProfiling").get()) | 58 if (WebInspector.moduleSetting("highResolutionCpuProfiling").get()) |
| 57 categoriesArray.push(disabledByDefault("v8.cpu_profiler.hires"))
; | 59 categoriesArray.push(disabledByDefault("v8.cpu_profiler.hires"))
; |
| 58 } | 60 } |
| 59 if (captureCauses || enableJSSampling) | 61 if (captureCauses || enableJSSampling) |
| 60 categoriesArray.push(disabledByDefault("devtools.timeline.stack")); | 62 categoriesArray.push(disabledByDefault("devtools.timeline.stack")); |
| 61 if (captureCauses && Runtime.experiments.isEnabled("timelineInvalidation
Tracking")) | 63 if (captureCauses && Runtime.experiments.isEnabled("timelineInvalidation
Tracking")) |
| 62 categoriesArray.push(disabledByDefault("devtools.timeline.invalidati
onTracking")); | 64 categoriesArray.push(disabledByDefault("devtools.timeline.invalidati
onTracking")); |
| 63 if (capturePictures) { | 65 if (capturePictures) { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 289 |
| 288 /** | 290 /** |
| 289 * @param {number} progress | 291 * @param {number} progress |
| 290 * @override | 292 * @override |
| 291 */ | 293 */ |
| 292 eventsRetrievalProgress: function(progress) | 294 eventsRetrievalProgress: function(progress) |
| 293 { | 295 { |
| 294 this._delegate.loadingProgress(progress); | 296 this._delegate.loadingProgress(progress); |
| 295 } | 297 } |
| 296 }; | 298 }; |
| OLD | NEW |