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

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

Issue 661023002: DevTools: move JS sampling Timeline out of experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelineFlameChart.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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 if (InspectorFrontendHost.isUnderTest()) { 163 if (InspectorFrontendHost.isUnderTest()) {
164 // Enable experiments for testing. 164 // Enable experiments for testing.
165 var testPath = WebInspector.settings.testPath.get(); 165 var testPath = WebInspector.settings.testPath.get();
166 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers /") !== -1) 166 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers /") !== -1)
167 Runtime.experiments.enableForTest("layersPanel"); 167 Runtime.experiments.enableForTest("layersPanel");
168 if (testPath.indexOf("tracing/") !== -1) 168 if (testPath.indexOf("tracing/") !== -1)
169 Runtime.experiments.enableForTest("timelineOnTraceEvents"); 169 Runtime.experiments.enableForTest("timelineOnTraceEvents");
170 if (testPath.indexOf("documentation/") !== -1) 170 if (testPath.indexOf("documentation/") !== -1)
171 Runtime.experiments.enableForTest("documentation"); 171 Runtime.experiments.enableForTest("documentation");
172 } else { 172 } else {
173 Runtime.experiments.setDefaultExperiments(["timelineOnTraceEvents"]) ; 173 Runtime.experiments.setDefaultExperiments(["timelineOnTraceEvents", "timelineJSCPUProfile"]);
174 } 174 }
175 }, 175 },
176 176
177 _createAppUI: function() 177 _createAppUI: function()
178 { 178 {
179 console.timeStamp("Main._createApp"); 179 console.timeStamp("Main._createApp");
180 180
181 WebInspector.installPortStyles(); 181 WebInspector.installPortStyles();
182 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor" )) 182 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor" ))
183 WebInspector.setToolbarColors(Runtime.queryParam("toolbarColor"), Ru ntime.queryParam("textColor")); 183 WebInspector.setToolbarColors(Runtime.queryParam("toolbarColor"), Ru ntime.queryParam("textColor"));
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 /** 867 /**
868 * @param {!WebInspector.Event} event 868 * @param {!WebInspector.Event} event
869 */ 869 */
870 _inspectNode: function(event) 870 _inspectNode: function(event)
871 { 871 {
872 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 872 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
873 } 873 }
874 } 874 }
875 875
876 new WebInspector.Main(); 876 new WebInspector.Main();
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698