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

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

Issue 2472213005: DevTools: introduce "Track CSS Usage" experiment (Closed)
Patch Set: Unused CSS highlight in sources panel 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 /* 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true); 118 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true);
119 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true); 119 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true);
120 Runtime.experiments.register('securityPanel', 'Security panel'); 120 Runtime.experiments.register('securityPanel', 'Security panel');
121 Runtime.experiments.register('sourceDiff', 'Source diff'); 121 Runtime.experiments.register('sourceDiff', 'Source diff');
122 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ; 122 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ;
123 Runtime.experiments.register('timelineFlowEvents', 'Timeline flow events', t rue); 123 Runtime.experiments.register('timelineFlowEvents', 'Timeline flow events', t rue);
124 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true); 124 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true);
125 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI'); 125 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI');
126 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true); 126 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true);
127 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true); 127 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true);
128 Runtime.experiments.register('timelineRuleUsageRecording', 'Track CSS rules usage while recording Timeline.');
128 129
129 Runtime.experiments.cleanUpStaleExperiments(); 130 Runtime.experiments.cleanUpStaleExperiments();
130 131
131 if (InspectorFrontendHost.isUnderTest()) { 132 if (InspectorFrontendHost.isUnderTest()) {
132 var testPath = JSON.parse(prefs['testPath'] || '""'); 133 var testPath = JSON.parse(prefs['testPath'] || '""');
133 // Enable experiments for testing. 134 // Enable experiments for testing.
134 if (testPath.indexOf('layers/') !== -1) 135 if (testPath.indexOf('layers/') !== -1)
135 Runtime.experiments.enableForTest('layersPanel'); 136 Runtime.experiments.enableForTest('layersPanel');
136 if (testPath.indexOf('timeline/') !== -1 || testPath.indexOf('layers/') != = -1) 137 if (testPath.indexOf('timeline/') !== -1 || testPath.indexOf('layers/') != = -1)
137 Runtime.experiments.enableForTest('layersPanel'); 138 Runtime.experiments.enableForTest('layersPanel');
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 * @override 1054 * @override
1054 * @return {?Element} 1055 * @return {?Element}
1055 */ 1056 */
1056 settingElement() { 1057 settingElement() {
1057 return WebInspector.SettingsUI.createSettingCheckbox( 1058 return WebInspector.SettingsUI.createSettingCheckbox(
1058 WebInspector.UIString('Show rulers'), WebInspector.moduleSetting('showMe tricsRulers')); 1059 WebInspector.UIString('Show rulers'), WebInspector.moduleSetting('showMe tricsRulers'));
1059 } 1060 }
1060 }; 1061 };
1061 1062
1062 new WebInspector.Main(); 1063 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698