| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 this._setting = WebInspector.settings.createSetting("experiments", {}); | 276 this._setting = WebInspector.settings.createSetting("experiments", {}); |
| 277 this._experiments = []; | 277 this._experiments = []; |
| 278 this._enabledForTest = {}; | 278 this._enabledForTest = {}; |
| 279 | 279 |
| 280 // Add currently running experiments here. | 280 // Add currently running experiments here. |
| 281 this.asyncStackTraces = this._createExperiment("asyncStackTraces", "Enable s
upport for async stack traces"); | 281 this.asyncStackTraces = this._createExperiment("asyncStackTraces", "Enable s
upport for async stack traces"); |
| 282 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); | 282 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); |
| 283 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); | 283 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); |
| 284 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "Enable frameworks debugging support"); | 284 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "Enable frameworks debugging support"); |
| 285 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel"
); | 285 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel"
); |
| 286 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s
tep-in candidates while debugging."); | |
| 287 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); | 286 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); |
| 288 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); | 287 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); |
| 289 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); | 288 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); |
| 290 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); | 289 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); |
| 291 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); | 290 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); |
| 292 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); | 291 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); |
| 293 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab
le JavaScript heap allocation profiler"); | 292 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab
le JavaScript heap allocation profiler"); |
| 294 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab
le FlameChart mode in Timeline"); | 293 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab
le FlameChart mode in Timeline"); |
| 295 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Show memory breakdown statistics in heap snapshots"); | 294 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Show memory breakdown statistics in heap snapshots"); |
| 296 this.timelineNoLiveUpdate = this._createExperiment("timelineNoLiveUpdate", "
Timeline w/o live update"); | 295 this.timelineNoLiveUpdate = this._createExperiment("timelineNoLiveUpdate", "
Timeline w/o live update"); |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 { | 604 { |
| 606 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 605 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 607 // periodical breakpoints duplication leading to inspector slowness. | 606 // periodical breakpoints duplication leading to inspector slowness. |
| 608 if (breakpointsSetting.get().length > maxBreakpointsCount) | 607 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 609 breakpointsSetting.set([]); | 608 breakpointsSetting.set([]); |
| 610 } | 609 } |
| 611 } | 610 } |
| 612 | 611 |
| 613 WebInspector.settings = new WebInspector.Settings(); | 612 WebInspector.settings = new WebInspector.Settings(); |
| 614 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); | 613 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); |
| OLD | NEW |