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

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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true); 119 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true);
120 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true); 120 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true);
121 Runtime.experiments.register('securityPanel', 'Security panel'); 121 Runtime.experiments.register('securityPanel', 'Security panel');
122 Runtime.experiments.register('sourceDiff', 'Source diff'); 122 Runtime.experiments.register('sourceDiff', 'Source diff');
123 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ; 123 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ;
124 Runtime.experiments.register('timelineFlowEvents', 'Timeline flow events', t rue); 124 Runtime.experiments.register('timelineFlowEvents', 'Timeline flow events', t rue);
125 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true); 125 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true);
126 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI'); 126 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI');
127 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true); 127 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true);
128 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true); 128 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true);
129 Runtime.experiments.register('timelineRuleUsageRecording', 'Timeline tracing the CSS rule usage');
caseq 2016/11/04 21:10:02 Track CSS rules usage while recording Timeline.
129 130
130 Runtime.experiments.cleanUpStaleExperiments(); 131 Runtime.experiments.cleanUpStaleExperiments();
131 132
132 if (InspectorFrontendHost.isUnderTest()) { 133 if (InspectorFrontendHost.isUnderTest()) {
133 var testPath = JSON.parse(prefs['testPath'] || '""'); 134 var testPath = JSON.parse(prefs['testPath'] || '""');
134 // Enable experiments for testing. 135 // Enable experiments for testing.
135 if (testPath.indexOf('layers/') !== -1) 136 if (testPath.indexOf('layers/') !== -1)
136 Runtime.experiments.enableForTest('layersPanel'); 137 Runtime.experiments.enableForTest('layersPanel');
137 if (testPath.indexOf('timeline/') !== -1 || testPath.indexOf('layers/') != = -1) 138 if (testPath.indexOf('timeline/') !== -1 || testPath.indexOf('layers/') != = -1)
138 Runtime.experiments.enableForTest('layersPanel'); 139 Runtime.experiments.enableForTest('layersPanel');
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 * @override 1060 * @override
1060 * @return {?Element} 1061 * @return {?Element}
1061 */ 1062 */
1062 settingElement() { 1063 settingElement() {
1063 return WebInspector.SettingsUI.createSettingCheckbox( 1064 return WebInspector.SettingsUI.createSettingCheckbox(
1064 WebInspector.UIString('Show rulers'), WebInspector.moduleSetting('showMe tricsRulers')); 1065 WebInspector.UIString('Show rulers'), WebInspector.moduleSetting('showMe tricsRulers'));
1065 } 1066 }
1066 }; 1067 };
1067 1068
1068 new WebInspector.Main(); 1069 new WebInspector.Main();
1070
caseq 2016/11/04 21:10:02 revert this line.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698