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

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 6 years, 9 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
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 22 matching lines...) Expand all
33 maxInlineTextChildLength: 80, 33 maxInlineTextChildLength: 80,
34 minDrawerHeight: 25, 34 minDrawerHeight: 25,
35 minSidebarWidth: 100, 35 minSidebarWidth: 100,
36 minSidebarHeight: 75, 36 minSidebarHeight: 75,
37 applicationTitle: "Developer Tools - %s", 37 applicationTitle: "Developer Tools - %s",
38 experimentsEnabled: false 38 experimentsEnabled: false
39 } 39 }
40 40
41 var Capabilities = { 41 var Capabilities = {
42 canInspectWorkers: false, 42 canInspectWorkers: false,
43 canProfilePower: false,
43 } 44 }
44 45
45 /** 46 /**
46 * @constructor 47 * @constructor
47 */ 48 */
48 WebInspector.Settings = function() 49 WebInspector.Settings = function()
49 { 50 {
50 this._eventSupport = new WebInspector.Object(); 51 this._eventSupport = new WebInspector.Object();
51 this._registry = /** @type {!Object.<string, !WebInspector.Setting>} */ ({}) ; 52 this._registry = /** @type {!Object.<string, !WebInspector.Setting>} */ ({}) ;
52 53
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s tep-in candidates while debugging."); 282 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s tep-in candidates while debugging.");
282 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc", "Do not open drawer on Esc"); 283 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc", "Do not open drawer on Esc");
283 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show editor in drawer"); 284 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show editor in drawer");
284 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t imeline"); 285 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t imeline");
285 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet", "Allow custom UI themes"); 286 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet", "Allow custom UI themes");
286 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh ow workers in main window"); 287 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh ow workers in main window");
287 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left mode"); 288 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left mode");
288 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab le JavaScript heap allocation profiler"); 289 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab le JavaScript heap allocation profiler");
289 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab le FlameChart mode in Timeline"); 290 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab le FlameChart mode in Timeline");
290 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics ", "Show memory breakdown statistics in heap snapshots"); 291 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics ", "Show memory breakdown statistics in heap snapshots");
292 this.powerProfiler = this._createExperiment("powerProfiler", "Enable power m ode in Timeline");
291 293
292 this._cleanUpSetting(); 294 this._cleanUpSetting();
293 } 295 }
294 296
295 WebInspector.ExperimentsSettings.prototype = { 297 WebInspector.ExperimentsSettings.prototype = {
296 /** 298 /**
297 * @return {!Array.<!WebInspector.Experiment>} 299 * @return {!Array.<!WebInspector.Experiment>}
298 */ 300 */
299 get experiments() 301 get experiments()
300 { 302 {
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 { 571 {
570 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused 572 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused
571 // periodical breakpoints duplication leading to inspector slowness. 573 // periodical breakpoints duplication leading to inspector slowness.
572 if (breakpointsSetting.get().length > maxBreakpointsCount) 574 if (breakpointsSetting.get().length > maxBreakpointsCount)
573 breakpointsSetting.set([]); 575 breakpointsSetting.set([]);
574 } 576 }
575 } 577 }
576 578
577 WebInspector.settings = new WebInspector.Settings(); 579 WebInspector.settings = new WebInspector.Settings();
578 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); 580 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698