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

Side by Side Diff: Source/devtools/front_end/Settings.js

Issue 104523002: [DevTools] Add power profiler and power overview in timeline panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 this.fileSystemInspection = this._createExperiment("fileSystemInspection", " FileSystem inspection"); 264 this.fileSystemInspection = this._createExperiment("fileSystemInspection", " FileSystem inspection");
265 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas inspection"); 265 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas inspection");
266 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support" ); 266 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support" );
267 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin gSupport", "Enable frameworks debugging support"); 267 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin gSupport", "Enable frameworks debugging support");
268 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel" ); 268 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel" );
269 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s tep-in candidates while debugging."); 269 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s tep-in candidates while debugging.");
270 this.openConsoleWithCtrlTilde = this._createExperiment("openConsoleWithCtrlT ilde", "Open console with Ctrl/Cmd+Tilde, not Esc"); 270 this.openConsoleWithCtrlTilde = this._createExperiment("openConsoleWithCtrlT ilde", "Open console with Ctrl/Cmd+Tilde, not Esc");
271 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show editor in drawer"); 271 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show editor in drawer");
272 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU utilizati on on timeline"); 272 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU utilizati on on timeline");
273 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet", "Allow custom UI themes"); 273 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet", "Allow custom UI themes");
274 this.powerProfile = this._createExperiment("powerProfile", "Enable power pro file on timeline");
pfeldman 2014/01/09 11:38:52 We now try to create settings locally, where they
274 275
275 this._cleanUpSetting(); 276 this._cleanUpSetting();
276 } 277 }
277 278
278 WebInspector.ExperimentsSettings.prototype = { 279 WebInspector.ExperimentsSettings.prototype = {
279 /** 280 /**
280 * @return {!Array.<WebInspector.Experiment>} 281 * @return {!Array.<WebInspector.Experiment>}
281 */ 282 */
282 get experiments() 283 get experiments()
283 { 284 {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 { 471 {
471 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused 472 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused
472 // periodical breakpoints duplication leading to inspector slowness. 473 // periodical breakpoints duplication leading to inspector slowness.
473 if (breakpointsSetting.get().length > maxBreakpointsCount) 474 if (breakpointsSetting.get().length > maxBreakpointsCount)
474 breakpointsSetting.set([]); 475 breakpointsSetting.set([]);
475 } 476 }
476 } 477 }
477 478
478 WebInspector.settings = new WebInspector.Settings(); 479 WebInspector.settings = new WebInspector.Settings();
479 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); 480 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698