Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 335 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show editor in drawer"); | 335 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show editor in drawer"); |
| 336 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t imeline"); | 336 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t imeline"); |
| 337 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet", "Allow custom UI themes"); | 337 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet", "Allow custom UI themes"); |
| 338 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh ow workers in main window"); | 338 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh ow workers in main window"); |
| 339 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left mode"); | 339 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left mode"); |
| 340 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab le JavaScript heap allocation profiler"); | 340 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab le JavaScript heap allocation profiler"); |
| 341 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab le FlameChart mode in Timeline"); | 341 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab le FlameChart mode in Timeline"); |
| 342 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics ", "Show memory breakdown statistics in heap snapshots"); | 342 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics ", "Show memory breakdown statistics in heap snapshots"); |
| 343 this.timelineNoLiveUpdate = this._createExperiment("timelineNoLiveUpdate", " Timeline w/o live update"); | 343 this.timelineNoLiveUpdate = this._createExperiment("timelineNoLiveUpdate", " Timeline w/o live update"); |
| 344 this.powerProfiler = this._createExperiment("powerProfiler", "Enable power m ode in Timeline"); | 344 this.powerProfiler = this._createExperiment("powerProfiler", "Enable power m ode in Timeline"); |
| 345 this.traceViewer = this._createExperiment("traceViewer", "Show Trace viewer in Timeline"); | |
|
pfeldman
2014/03/26 18:32:09
"trace viewer" would add to the confusion. lets ca
caseq
2014/03/28 17:13:41
renamed to timelineTracingMode
| |
| 345 | 346 |
| 346 this._cleanUpSetting(); | 347 this._cleanUpSetting(); |
| 347 } | 348 } |
| 348 | 349 |
| 349 WebInspector.ExperimentsSettings.prototype = { | 350 WebInspector.ExperimentsSettings.prototype = { |
| 350 /** | 351 /** |
| 351 * @return {!Array.<!WebInspector.Experiment>} | 352 * @return {!Array.<!WebInspector.Experiment>} |
| 352 */ | 353 */ |
| 353 get experiments() | 354 get experiments() |
| 354 { | 355 { |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 653 { | 654 { |
| 654 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused | 655 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused |
| 655 // periodical breakpoints duplication leading to inspector slowness. | 656 // periodical breakpoints duplication leading to inspector slowness. |
| 656 if (breakpointsSetting.get().length > maxBreakpointsCount) | 657 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 657 breakpointsSetting.set([]); | 658 breakpointsSetting.set([]); |
| 658 } | 659 } |
| 659 } | 660 } |
| 660 | 661 |
| 661 WebInspector.settings = new WebInspector.Settings(); | 662 WebInspector.settings = new WebInspector.Settings(); |
| 662 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe ctor.queryParam("experiments") !== null); | 663 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe ctor.queryParam("experiments") !== null); |
| OLD | NEW |