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

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

Issue 614323003: DevTools: enable by default disableAgentsWhenProfile experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: small change Created 6 years, 2 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 | Annotate | Revision Log
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 Runtime.experiments.register("layersPanel", "Layers panel"); 154 Runtime.experiments.register("layersPanel", "Layers panel");
155 Runtime.experiments.register("promiseTracker", "Enable Promise inspectio n", true); 155 Runtime.experiments.register("promiseTracker", "Enable Promise inspectio n", true);
156 Runtime.experiments.register("suggestUsingWorkspace", "Suggest using wor kspace", true); 156 Runtime.experiments.register("suggestUsingWorkspace", "Suggest using wor kspace", true);
157 Runtime.experiments.register("timelineOnTraceEvents", "Timeline on trace events"); 157 Runtime.experiments.register("timelineOnTraceEvents", "Timeline on trace events");
158 Runtime.experiments.register("timelinePowerProfiler", "Timeline power pr ofiler"); 158 Runtime.experiments.register("timelinePowerProfiler", "Timeline power pr ofiler");
159 Runtime.experiments.register("timelineJSCPUProfile", "Timeline with JS s ampling"); 159 Runtime.experiments.register("timelineJSCPUProfile", "Timeline with JS s ampling");
160 Runtime.experiments.cleanUpStaleExperiments(); 160 Runtime.experiments.cleanUpStaleExperiments();
161 161
162 if (InspectorFrontendHost.isUnderTest()) { 162 if (InspectorFrontendHost.isUnderTest()) {
163 // Enable experiments for testing. 163 // Enable experiments for testing.
164 Runtime.experiments.enableForTest("disableAgentsWhenProfile");
164 var testPath = WebInspector.settings.testPath.get(); 165 var testPath = WebInspector.settings.testPath.get();
165 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers /") !== -1) 166 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers /") !== -1)
166 Runtime.experiments.enableForTest("layersPanel"); 167 Runtime.experiments.enableForTest("layersPanel");
167 if (testPath.indexOf("tracing/") !== -1) 168 if (testPath.indexOf("tracing/") !== -1)
168 Runtime.experiments.enableForTest("timelineOnTraceEvents"); 169 Runtime.experiments.enableForTest("timelineOnTraceEvents");
169 if (testPath.indexOf("documentation/") !== -1) 170 if (testPath.indexOf("documentation/") !== -1)
170 Runtime.experiments.enableForTest("documentation"); 171 Runtime.experiments.enableForTest("documentation");
171 } else { 172 } else {
172 Runtime.experiments.setDefaultExperiments(["timelineOnTraceEvents"]) ; 173 Runtime.experiments.setDefaultExperiments([
174 "timelineOnTraceEvents",
175 "disableAgentsWhenProfile",
176 ]);
173 } 177 }
174 }, 178 },
175 179
176 _createAppUI: function() 180 _createAppUI: function()
177 { 181 {
178 console.timeStamp("Main._createApp"); 182 console.timeStamp("Main._createApp");
179 183
180 WebInspector.installPortStyles(); 184 WebInspector.installPortStyles();
181 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor" )) 185 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor" ))
182 WebInspector.setToolbarColors(Runtime.queryParam("toolbarColor"), Ru ntime.queryParam("textColor")); 186 WebInspector.setToolbarColors(Runtime.queryParam("toolbarColor"), Ru ntime.queryParam("textColor"));
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 /** 870 /**
867 * @param {!WebInspector.Event} event 871 * @param {!WebInspector.Event} event
868 */ 872 */
869 _inspectNode: function(event) 873 _inspectNode: function(event)
870 { 874 {
871 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 875 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
872 } 876 }
873 } 877 }
874 878
875 new WebInspector.Main(); 879 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698