| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 if (captureCauses && Runtime.experiments.isEnabled("timelineInvalidation
Tracking")) | 60 if (captureCauses && Runtime.experiments.isEnabled("timelineInvalidation
Tracking")) |
| 61 categoriesArray.push(disabledByDefault("devtools.timeline.invalidati
onTracking")); | 61 categoriesArray.push(disabledByDefault("devtools.timeline.invalidati
onTracking")); |
| 62 if (capturePictures) { | 62 if (capturePictures) { |
| 63 categoriesArray.push(disabledByDefault("devtools.timeline.layers"), | 63 categoriesArray.push(disabledByDefault("devtools.timeline.layers"), |
| 64 disabledByDefault("devtools.timeline.picture"), | 64 disabledByDefault("devtools.timeline.picture"), |
| 65 disabledByDefault("blink.graphics_context_annot
ations")); | 65 disabledByDefault("blink.graphics_context_annot
ations")); |
| 66 } | 66 } |
| 67 if (captureFilmStrip) | 67 if (captureFilmStrip) |
| 68 categoriesArray.push(disabledByDefault("devtools.screenshot")); | 68 categoriesArray.push(disabledByDefault("devtools.screenshot")); |
| 69 | 69 |
| 70 var extensionTraceProviders = WebInspector.extensionServer.traceProvider
s(); |
| 71 for (var i = 0; i < extensionTraceProviders.length; ++i) { |
| 72 WebInspector.extensionServer.startTraceProviderRun(extensionTracePro
viders[i].id); |
| 73 } |
| 74 |
| 70 var categories = categoriesArray.join(","); | 75 var categories = categoriesArray.join(","); |
| 71 this._startRecordingWithCategories(categories, enableJSSampling); | 76 this._startRecordingWithCategories(categories, enableJSSampling); |
| 72 }, | 77 }, |
| 73 | 78 |
| 74 stopRecording: function() | 79 stopRecording: function() |
| 75 { | 80 { |
| 76 this._allProfilesStoppedPromise = this._stopProfilingOnAllTargets(); | 81 this._allProfilesStoppedPromise = this._stopProfilingOnAllTargets(); |
| 77 this._target.tracingManager.stop(); | 82 this._target.tracingManager.stop(); |
| 78 this._targetsResumedPromise = WebInspector.targetManager.resumeAllTarget
s(); | 83 this._targetsResumedPromise = WebInspector.targetManager.resumeAllTarget
s(); |
| 79 this._delegate.loadingStarted(); | 84 this._delegate.loadingStarted(); |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 281 |
| 277 /** | 282 /** |
| 278 * @param {number} progress | 283 * @param {number} progress |
| 279 * @override | 284 * @override |
| 280 */ | 285 */ |
| 281 eventsRetrievalProgress: function(progress) | 286 eventsRetrievalProgress: function(progress) |
| 282 { | 287 { |
| 283 this._delegate.loadingProgress(progress); | 288 this._delegate.loadingProgress(progress); |
| 284 } | 289 } |
| 285 } | 290 } |
| OLD | NEW |