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