Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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}
11 * @implements {WebInspector.TracingManagerClient} 11 * @implements {WebInspector.TracingManagerClient}
12 */ 12 */
13 WebInspector.TimelineController = function(target, delegate, tracingModel) 13 WebInspector.TimelineController = function(target, delegate, tracingModel)
14 { 14 {
15 this._delegate = delegate; 15 this._delegate = delegate;
16 this._target = target; 16 this._target = target;
17 this._tracingModel = tracingModel; 17 this._tracingModel = tracingModel;
18 this._targets = []; 18 this._targets = [];
19 WebInspector.targetManager.observeTargets(this); 19 WebInspector.targetManager.observeTargets(this);
20 } 20 };
21 21
22 WebInspector.TimelineController.prototype = { 22 WebInspector.TimelineController.prototype = {
23 /** 23 /**
24 * @param {boolean} captureCauses 24 * @param {boolean} captureCauses
25 * @param {boolean} enableJSSampling 25 * @param {boolean} enableJSSampling
26 * @param {boolean} captureMemory 26 * @param {boolean} captureMemory
27 * @param {boolean} capturePictures 27 * @param {boolean} capturePictures
28 * @param {boolean} captureFilmStrip 28 * @param {boolean} captureFilmStrip
29 */ 29 */
30 startRecording: function(captureCauses, enableJSSampling, captureMemory, cap turePictures, captureFilmStrip) 30 startRecording: function(captureCauses, enableJSSampling, captureMemory, cap turePictures, captureFilmStrip)
31 { 31 {
32 this._extensionTraceProviders = WebInspector.extensionServer.traceProvid ers().slice(); 32 this._extensionTraceProviders = WebInspector.extensionServer.traceProvid ers().slice();
33 33
34 function disabledByDefault(category) 34 function disabledByDefault(category)
35 { 35 {
36 return "disabled-by-default-" + category; 36 return "disabled-by-default-" + category;
37 } 37 }
38 var categoriesArray = [ 38 var categoriesArray = [
39 "-*", 39 "-*",
40 "devtools.timeline", 40 "devtools.timeline",
41 "v8.execute", 41 "v8.execute",
42 disabledByDefault("devtools.timeline"), 42 disabledByDefault("devtools.timeline"),
43 disabledByDefault("devtools.timeline.frame"), 43 disabledByDefault("devtools.timeline.frame"),
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("timelineTracingJSProfile") && enableJ SSampling) { 54 if (Runtime.experiments.isEnabled("timelineTracingJSProfile") && enableJ SSampling) {
55 categoriesArray.push(disabledByDefault("v8.cpu_profiler")); 55 categoriesArray.push(disabledByDefault("v8.cpu_profiler"));
56 if (WebInspector.moduleSetting("highResolutionCpuProfiling").get()) 56 if (WebInspector.moduleSetting("highResolutionCpuProfiling").get())
57 categoriesArray.push(disabledByDefault("v8.cpu_profiler.hires")) ; 57 categoriesArray.push(disabledByDefault("v8.cpu_profiler.hires")) ;
58 } 58 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 }, 286 },
287 287
288 /** 288 /**
289 * @param {number} progress 289 * @param {number} progress
290 * @override 290 * @override
291 */ 291 */
292 eventsRetrievalProgress: function(progress) 292 eventsRetrievalProgress: function(progress)
293 { 293 {
294 this._delegate.loadingProgress(progress); 294 this._delegate.loadingProgress(progress);
295 } 295 }
296 } 296 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698