Changeset 149807 in webkit


Ignore:
Timestamp:
May 9, 2013 8:16:58 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Remove Memory Distribution and Memory Snapshots Panels
https://bugs.webkit.org/show_bug.cgi?id=115850

Patch by Seokju Kwon <Seokju Kwon> on 2013-05-09
Reviewed by Andreas Kling.

Removed the Memory Instrumentation Code after r148921.

No new tests, no behavior change.

  • inspector/compile-front-end.py:
  • inspector/front-end/NativeMemorySnapshotView.js: Removed.
  • inspector/front-end/ProfilesPanel.js:

(WebInspector.ProfilesPanel):

  • inspector/front-end/Settings.js:

(WebInspector.Settings):
(WebInspector.ExperimentsSettings):

  • inspector/front-end/SettingsScreen.js:
  • inspector/front-end/WebKit.qrc:
  • inspector/front-end/inspector.css:
  • inspector/front-end/inspector.js:

(WebInspector._panelDescriptors):

  • inspector/front-end/nativeMemoryProfiler.css: Removed.
Location:
trunk/Source/WebCore
Files:
2 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r149805 r149807  
     12013-05-09  Seokju Kwon  <seokju.kwon@gmail.com>
     2
     3        Web Inspector: Remove Memory Distribution and Memory Snapshots Panels
     4        https://bugs.webkit.org/show_bug.cgi?id=115850
     5
     6        Reviewed by Andreas Kling.
     7
     8        Removed the Memory Instrumentation Code after r148921.
     9
     10        No new tests, no behavior change.
     11
     12        * inspector/compile-front-end.py:
     13        * inspector/front-end/NativeMemorySnapshotView.js: Removed.
     14        * inspector/front-end/ProfilesPanel.js:
     15        (WebInspector.ProfilesPanel):
     16        * inspector/front-end/Settings.js:
     17        (WebInspector.Settings):
     18        (WebInspector.ExperimentsSettings):
     19        * inspector/front-end/SettingsScreen.js:
     20        * inspector/front-end/WebKit.qrc:
     21        * inspector/front-end/inspector.css:
     22        * inspector/front-end/inspector.js:
     23        (WebInspector._panelDescriptors):
     24        * inspector/front-end/nativeMemoryProfiler.css: Removed.
     25
    1262013-05-09  Zan Dobersek  <zdobersek@igalia.com>
    227
  • trunk/Source/WebCore/inspector/compile-front-end.py

    r147105 r149807  
    352352            "JSHeapSnapshot.js",
    353353            "NativeHeapSnapshot.js",
    354             "NativeMemorySnapshotView.js",
    355354            "ProfileDataGridTree.js",
    356355            "ProfilesPanel.js",
  • trunk/Source/WebCore/inspector/front-end/ProfilesPanel.js

    r146752 r149807  
    409409        if (Capabilities.heapProfilerPresent)
    410410            this._registerProfileType(new WebInspector.HeapSnapshotProfileType());
    411         if (!WebInspector.WorkerManager.isWorkerFrontend() && WebInspector.experimentsSettings.nativeMemorySnapshots.isEnabled()) {
    412             this._registerProfileType(new WebInspector.NativeSnapshotProfileType());
    413             this._registerProfileType(new WebInspector.NativeMemoryProfileType());
    414         }
    415411        if (!WebInspector.WorkerManager.isWorkerFrontend() && WebInspector.experimentsSettings.canvasInspection.isEnabled())
    416412            this._registerProfileType(new WebInspector.CanvasProfileType());
     
    14201416
    14211417
    1422 /**
    1423  * @constructor
    1424  * @extends {WebInspector.ProfilesPanel}
    1425  */
    1426 WebInspector.MemoryChartProfilerPanel = function()
    1427 {
    1428     WebInspector.ProfilesPanel.call(this, "memory-chart-profiler", new WebInspector.NativeMemoryProfileType());
    1429 }
    1430 
    1431 WebInspector.MemoryChartProfilerPanel.prototype = {
    1432     __proto__: WebInspector.ProfilesPanel.prototype
    1433 }
    1434 
    1435 
    1436 /**
    1437  * @constructor
    1438  * @extends {WebInspector.ProfilesPanel}
    1439  */
    1440 WebInspector.NativeMemoryProfilerPanel = function()
    1441 {
    1442     WebInspector.ProfilesPanel.call(this, "memory-snapshot-profiler", new WebInspector.NativeSnapshotProfileType());
    1443 }
    1444 
    1445 WebInspector.NativeMemoryProfilerPanel.prototype = {
    1446     __proto__: WebInspector.ProfilesPanel.prototype
    1447 }
    1448 
    1449 
    14501418importScript("ProfileDataGridTree.js");
    14511419importScript("BottomUpProfileDataGridTree.js");
     
    14621430importScript("JSHeapSnapshot.js");
    14631431importScript("NativeHeapSnapshot.js");
    1464 importScript("NativeMemorySnapshotView.js");
    14651432importScript("ProfileLauncherView.js");
    14661433importScript("TopDownProfileDataGridTree.js");
  • trunk/Source/WebCore/inspector/front-end/Settings.js

    r149792 r149807  
    113113    this.deviceOrientationOverride = this.createSetting("deviceOrientationOverride", "");
    114114    this.showHeapSnapshotObjectsHiddenProperties = this.createSetting("showHeapSnapshotObjectsHiddenProperties", false);
    115     this.showNativeSnapshotUninstrumentedSize = this.createSetting("showNativeSnapshotUninstrumentedSize", false);
    116115    this.searchInContentScripts = this.createSetting("searchInContentScripts", false);
    117116    this.textEditorIndent = this.createSetting("textEditorIndent", "    ");
     
    218217    // Add currently running experiments here.
    219218    this.snippetsSupport = this._createExperiment("snippetsSupport", "Snippets support");
    220     this.nativeMemorySnapshots = this._createExperiment("nativeMemorySnapshots", "Native memory profiling");
    221219    this.nativeMemoryTimeline = this._createExperiment("nativeMemoryTimeline", "Native memory timeline");
    222220    this.fileSystemInspection = this._createExperiment("fileSystemInspection", "FileSystem inspection");
  • trunk/Source/WebCore/inspector/front-end/SettingsScreen.js

    r146045 r149807  
    359359    p = this._appendSection(WebInspector.UIString("Profiler"));
    360360    p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show objects' hidden properties"), WebInspector.settings.showHeapSnapshotObjectsHiddenProperties));
    361     if (WebInspector.experimentsSettings.nativeMemorySnapshots.isEnabled())
    362         p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show uninstrumented native memory"), WebInspector.settings.showNativeSnapshotUninstrumentedSize));
    363361
    364362    p = this._appendSection(WebInspector.UIString("Timeline"));
  • trunk/Source/WebCore/inspector/front-end/WebKit.qrc

    r147105 r149807  
    123123    <file>NativeHeapSnapshot.js</file>
    124124    <file>NativeMemoryGraph.js</file>
    125     <file>NativeMemorySnapshotView.js</file>
    126125    <file>NavigatorOverlayController.js</file>
    127126    <file>NavigatorView.js</file>
     
    259258    <file>inspectorCommon.css</file>
    260259    <file>inspectorSyntaxHighlight.css</file>
    261     <file>nativeMemoryProfiler.css</file>
    262260    <file>navigatorView.css</file>
    263261    <file>networkLogView.css</file>
  • trunk/Source/WebCore/inspector/front-end/inspector.css

    r148668 r149807  
    547547}
    548548
    549 .toolbar-item.memory-chart-profiler .toolbar-icon {
    550     background-position-x: -160px;
    551 }
    552 
    553 body.dock-to-bottom .toolbar-item.memory-chart-profiler .toolbar-icon {
    554     background-position-x: -120px;
    555 }
    556 
    557 .toolbar-item.memory-snapshot-profiler .toolbar-icon {
    558     background-position-x: -160px;
    559 }
    560 
    561 body.dock-to-bottom .toolbar-item.memory-snapshot-profiler .toolbar-icon {
    562     background-position-x: -120px;
    563 }
    564 
    565549.toolbar-item.audits .toolbar-icon {
    566550    background-position-x: -192px;
  • trunk/Source/WebCore/inspector/front-end/inspector.js

    r147535 r149807  
    5757            if (!WebInspector.WorkerManager.isWorkerFrontend() && WebInspector.experimentsSettings.canvasInspection.isEnabled())
    5858                allProfilers.push(new WebInspector.PanelDescriptor("canvas-profiler", WebInspector.UIString("Canvas Profiler"), "CanvasProfilerPanel", "ProfilesPanel.js"));
    59             if (!WebInspector.WorkerManager.isWorkerFrontend() && WebInspector.experimentsSettings.nativeMemorySnapshots.isEnabled()) {
    60                 allProfilers.push(new WebInspector.PanelDescriptor("memory-chart-profiler", WebInspector.UIString("Memory Distribution"), "MemoryChartProfilerPanel", "ProfilesPanel.js"));
    61                 allProfilers.push(new WebInspector.PanelDescriptor("memory-snapshot-profiler", WebInspector.UIString("Memory Snapshots"), "NativeMemoryProfilerPanel", "ProfilesPanel.js"));
    62             }
    6359            Array.prototype.splice.bind(allDescriptors, allDescriptors.indexOf(profiles), 1).apply(null, allProfilers);
    6460        }
Note: See TracChangeset for help on using the changeset viewer.