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

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

Issue 654013003: Implement invalidation tracking in devtools (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update test for landing 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 Runtime.experiments.register("disableAgentsWhenProfile", "Disable other agents and UI when profiler is active", true); 151 Runtime.experiments.register("disableAgentsWhenProfile", "Disable other agents and UI when profiler is active", true);
152 Runtime.experiments.register("dockToLeft", "Dock to left", true); 152 Runtime.experiments.register("dockToLeft", "Dock to left", true);
153 Runtime.experiments.register("documentation", "JavaScript documentation" , true); 153 Runtime.experiments.register("documentation", "JavaScript documentation" , true);
154 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect ion"); 154 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect ion");
155 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true ); 155 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true );
156 Runtime.experiments.register("layersPanel", "Layers panel"); 156 Runtime.experiments.register("layersPanel", "Layers panel");
157 Runtime.experiments.register("promiseTracker", "Enable Promise inspectio n", true); 157 Runtime.experiments.register("promiseTracker", "Enable Promise inspectio n", true);
158 Runtime.experiments.register("timelineOnTraceEvents", "Timeline on trace events"); 158 Runtime.experiments.register("timelineOnTraceEvents", "Timeline on trace events");
159 Runtime.experiments.register("timelinePowerProfiler", "Timeline power pr ofiler"); 159 Runtime.experiments.register("timelinePowerProfiler", "Timeline power pr ofiler");
160 Runtime.experiments.register("timelineJSCPUProfile", "Timeline with JS s ampling"); 160 Runtime.experiments.register("timelineJSCPUProfile", "Timeline with JS s ampling");
161 Runtime.experiments.register("timelineInvalidationTracking", "Timeline w ith full invalidation tracking.");
161 Runtime.experiments.cleanUpStaleExperiments(); 162 Runtime.experiments.cleanUpStaleExperiments();
162 163
163 if (InspectorFrontendHost.isUnderTest()) { 164 if (InspectorFrontendHost.isUnderTest()) {
164 // Enable experiments for testing. 165 // Enable experiments for testing.
165 Runtime.experiments.enableForTest("disableAgentsWhenProfile"); 166 Runtime.experiments.enableForTest("disableAgentsWhenProfile");
166 var testPath = WebInspector.settings.testPath.get(); 167 var testPath = WebInspector.settings.testPath.get();
167 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers /") !== -1) 168 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers /") !== -1)
168 Runtime.experiments.enableForTest("layersPanel"); 169 Runtime.experiments.enableForTest("layersPanel");
169 if (testPath.indexOf("tracing/") !== -1) 170 if (testPath.indexOf("tracing/") !== -1)
170 Runtime.experiments.enableForTest("timelineOnTraceEvents"); 171 Runtime.experiments.enableForTest("timelineOnTraceEvents");
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 /** 878 /**
878 * @param {!WebInspector.Event} event 879 * @param {!WebInspector.Event} event
879 */ 880 */
880 _inspectNode: function(event) 881 _inspectNode: function(event)
881 { 882 {
882 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 883 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
883 } 884 }
884 } 885 }
885 886
886 new WebInspector.Main(); 887 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698