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

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

Issue 2491783002: DevTools: Use lightweight sampling mode to collect runtime call stats for Timeline. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * @implements {WebInspector.TargetManager.Observer} 5 * @implements {WebInspector.TargetManager.Observer}
6 * @implements {WebInspector.TracingManagerClient} 6 * @implements {WebInspector.TracingManagerClient}
7 * @unrestricted 7 * @unrestricted
8 */ 8 */
9 WebInspector.TimelineController = class { 9 WebInspector.TimelineController = class {
10 /** 10 /**
(...skipping 26 matching lines...) Expand all
37 '-*', 'devtools.timeline', 'v8.execute', disabledByDefault('devtools.timel ine'), 37 '-*', 'devtools.timeline', 'v8.execute', disabledByDefault('devtools.timel ine'),
38 disabledByDefault('devtools.timeline.frame'), WebInspector.TracingModel.To pLevelEventCategory, 38 disabledByDefault('devtools.timeline.frame'), WebInspector.TracingModel.To pLevelEventCategory,
39 WebInspector.TimelineModel.Category.Console, WebInspector.TimelineModel.Ca tegory.UserTiming 39 WebInspector.TimelineModel.Category.Console, WebInspector.TimelineModel.Ca tegory.UserTiming
40 ]; 40 ];
41 categoriesArray.push(WebInspector.TimelineModel.Category.LatencyInfo); 41 categoriesArray.push(WebInspector.TimelineModel.Category.LatencyInfo);
42 42
43 if (Runtime.experiments.isEnabled('timelineFlowEvents')) { 43 if (Runtime.experiments.isEnabled('timelineFlowEvents')) {
44 categoriesArray.push(disabledByDefault('toplevel.flow'), disabledByDefault ('ipc.flow')); 44 categoriesArray.push(disabledByDefault('toplevel.flow'), disabledByDefault ('ipc.flow'));
45 } 45 }
46 if (Runtime.experiments.isEnabled('timelineV8RuntimeCallStats') && enableJSS ampling) 46 if (Runtime.experiments.isEnabled('timelineV8RuntimeCallStats') && enableJSS ampling)
47 categoriesArray.push(disabledByDefault('v8.runtime_stats')); 47 categoriesArray.push(disabledByDefault('v8.runtime_stats_sampling'));
48 if (Runtime.experiments.isEnabled('timelineTracingJSProfile') && enableJSSam pling) { 48 if (Runtime.experiments.isEnabled('timelineTracingJSProfile') && enableJSSam pling) {
49 categoriesArray.push(disabledByDefault('v8.cpu_profiler')); 49 categoriesArray.push(disabledByDefault('v8.cpu_profiler'));
50 if (WebInspector.moduleSetting('highResolutionCpuProfiling').get()) 50 if (WebInspector.moduleSetting('highResolutionCpuProfiling').get())
51 categoriesArray.push(disabledByDefault('v8.cpu_profiler.hires')); 51 categoriesArray.push(disabledByDefault('v8.cpu_profiler.hires'));
52 } 52 }
53 if (captureCauses || enableJSSampling) 53 if (captureCauses || enableJSSampling)
54 categoriesArray.push(disabledByDefault('devtools.timeline.stack')); 54 categoriesArray.push(disabledByDefault('devtools.timeline.stack'));
55 if (captureCauses && Runtime.experiments.isEnabled('timelineInvalidationTrac king')) 55 if (captureCauses && Runtime.experiments.isEnabled('timelineInvalidationTrac king'))
56 categoriesArray.push(disabledByDefault('devtools.timeline.invalidationTrac king')); 56 categoriesArray.push(disabledByDefault('devtools.timeline.invalidationTrac king'));
57 if (capturePictures) { 57 if (capturePictures) {
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 } 266 }
267 267
268 /** 268 /**
269 * @param {number} progress 269 * @param {number} progress
270 * @override 270 * @override
271 */ 271 */
272 eventsRetrievalProgress(progress) { 272 eventsRetrievalProgress(progress) {
273 this._delegate.loadingProgress(progress); 273 this._delegate.loadingProgress(progress);
274 } 274 }
275 }; 275 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698