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

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

Issue 2612363003: DevTools: Show FMP markers on timeline experiment (Closed)
Patch Set: Created 3 years, 11 months 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 * @implements {SDK.TargetManager.Observer} 6 * @implements {SDK.TargetManager.Observer}
7 * @implements {SDK.TracingManagerClient} 7 * @implements {SDK.TracingManagerClient}
8 * @unrestricted 8 * @unrestricted
9 */ 9 */
10 Timeline.TimelineController = class { 10 Timeline.TimelineController = class {
(...skipping 26 matching lines...) Expand all
37 function disabledByDefault(category) { 37 function disabledByDefault(category) {
38 return 'disabled-by-default-' + category; 38 return 'disabled-by-default-' + category;
39 } 39 }
40 const categoriesArray = [ 40 const categoriesArray = [
41 '-*', 'devtools.timeline', 'v8.execute', disabledByDefault('devtools.timel ine'), 41 '-*', 'devtools.timeline', 'v8.execute', disabledByDefault('devtools.timel ine'),
42 disabledByDefault('devtools.timeline.frame'), SDK.TracingModel.TopLevelEve ntCategory, 42 disabledByDefault('devtools.timeline.frame'), SDK.TracingModel.TopLevelEve ntCategory,
43 TimelineModel.TimelineModel.Category.Console, TimelineModel.TimelineModel. Category.UserTiming 43 TimelineModel.TimelineModel.Category.Console, TimelineModel.TimelineModel. Category.UserTiming
44 ]; 44 ];
45 categoriesArray.push(TimelineModel.TimelineModel.Category.LatencyInfo); 45 categoriesArray.push(TimelineModel.TimelineModel.Category.LatencyInfo);
46 46
47 if (Runtime.experiments.isEnabled('timelineShowFMP'))
48 categoriesArray.push('loading');
47 if (Runtime.experiments.isEnabled('timelineV8RuntimeCallStats') && options.e nableJSSampling) 49 if (Runtime.experiments.isEnabled('timelineV8RuntimeCallStats') && options.e nableJSSampling)
48 categoriesArray.push(disabledByDefault('v8.runtime_stats_sampling')); 50 categoriesArray.push(disabledByDefault('v8.runtime_stats_sampling'));
49 if (Runtime.experiments.isEnabled('timelineTracingJSProfile') && options.ena bleJSSampling) { 51 if (Runtime.experiments.isEnabled('timelineTracingJSProfile') && options.ena bleJSSampling) {
50 categoriesArray.push(disabledByDefault('v8.cpu_profiler')); 52 categoriesArray.push(disabledByDefault('v8.cpu_profiler'));
51 if (Common.moduleSetting('highResolutionCpuProfiling').get()) 53 if (Common.moduleSetting('highResolutionCpuProfiling').get())
52 categoriesArray.push(disabledByDefault('v8.cpu_profiler.hires')); 54 categoriesArray.push(disabledByDefault('v8.cpu_profiler.hires'));
53 } 55 }
54 categoriesArray.push(disabledByDefault('devtools.timeline.stack')); 56 categoriesArray.push(disabledByDefault('devtools.timeline.stack'));
55 if (Runtime.experiments.isEnabled('timelineInvalidationTracking')) 57 if (Runtime.experiments.isEnabled('timelineInvalidationTracking'))
56 categoriesArray.push(disabledByDefault('devtools.timeline.invalidationTrac king')); 58 categoriesArray.push(disabledByDefault('devtools.timeline.invalidationTrac king'));
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 }; 281 };
280 282
281 /** 283 /**
282 * @typedef {!{ 284 * @typedef {!{
283 * enableJSSampling: (boolean|undefined), 285 * enableJSSampling: (boolean|undefined),
284 * capturePictures: (boolean|undefined), 286 * capturePictures: (boolean|undefined),
285 * captureFilmStrip: (boolean|undefined) 287 * captureFilmStrip: (boolean|undefined)
286 * }} 288 * }}
287 */ 289 */
288 Timeline.TimelineController.RecordingOptions; 290 Timeline.TimelineController.RecordingOptions;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698