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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2586573002: DevTools: Enable Timeline landing page experiment by default (Closed)
Patch Set: this time 4 real Created 4 years 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 | third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 Runtime.experiments.register('liveSASS', 'Live SASS'); 104 Runtime.experiments.register('liveSASS', 'Live SASS');
105 Runtime.experiments.register('nodeDebugging', 'Node debugging', true); 105 Runtime.experiments.register('nodeDebugging', 'Node debugging', true);
106 Runtime.experiments.register('persistence2', 'Persistence 2.0'); 106 Runtime.experiments.register('persistence2', 'Persistence 2.0');
107 Runtime.experiments.register('persistenceValidation', 'Validate persistence bindings'); 107 Runtime.experiments.register('persistenceValidation', 'Validate persistence bindings');
108 Runtime.experiments.register('requestBlocking', 'Request blocking', true); 108 Runtime.experiments.register('requestBlocking', 'Request blocking', true);
109 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true); 109 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true);
110 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true); 110 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true);
111 Runtime.experiments.register('sourceDiff', 'Source diff'); 111 Runtime.experiments.register('sourceDiff', 'Source diff');
112 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ; 112 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ;
113 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true); 113 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true);
114 Runtime.experiments.register('timelineLandingPage', 'Timeline landing page', true); 114 Runtime.experiments.register('timelineLandingPage', 'Timeline landing page') ;
115 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI'); 115 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI');
116 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true); 116 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true);
117 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true); 117 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true);
118 Runtime.experiments.register('timelineRuleUsageRecording', 'Track CSS rules usage while recording Timeline.'); 118 Runtime.experiments.register('timelineRuleUsageRecording', 'Track CSS rules usage while recording Timeline.');
119 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame on Timeline', true); 119 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame on Timeline', true);
120 120
121 Runtime.experiments.cleanUpStaleExperiments(); 121 Runtime.experiments.cleanUpStaleExperiments();
122 122
123 if (Host.isUnderTest(prefs)) { 123 if (Host.isUnderTest(prefs)) {
124 var testPath = JSON.parse(prefs['testPath'] || '""'); 124 var testPath = JSON.parse(prefs['testPath'] || '""');
125 // Enable experiments for testing. 125 // Enable experiments for testing.
126 if (testPath.indexOf('accessibility/') !== -1) 126 if (testPath.indexOf('accessibility/') !== -1)
127 Runtime.experiments.enableForTest('accessibilityInspection'); 127 Runtime.experiments.enableForTest('accessibilityInspection');
128 } 128 }
129 129
130 Runtime.experiments.setDefaultExperiments(['timelineRecordingPerspectives', 'persistenceValidation']); 130 Runtime.experiments.setDefaultExperiments(
131 ['timelineLandingPage', 'timelineRecordingPerspectives', 'persistenceVal idation']);
131 } 132 }
132 133
133 /** 134 /**
134 * @suppressGlobalPropertiesCheck 135 * @suppressGlobalPropertiesCheck
135 */ 136 */
136 _createAppUI() { 137 _createAppUI() {
137 console.time('Main._createAppUI'); 138 console.time('Main._createAppUI');
138 139
139 UI.viewManager = new UI.ViewManager(); 140 UI.viewManager = new UI.ViewManager();
140 141
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 * @override 976 * @override
976 * @return {?Element} 977 * @return {?Element}
977 */ 978 */
978 settingElement() { 979 settingElement() {
979 return UI.SettingsUI.createSettingCheckbox( 980 return UI.SettingsUI.createSettingCheckbox(
980 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 981 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
981 } 982 }
982 }; 983 };
983 984
984 new Main.Main(); 985 new Main.Main();
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698