diff options
author | Siva Velusamy <vsiva@google.com> | 2011-09-20 12:18:54 -0700 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2011-09-20 16:57:20 -0700 |
commit | 88ee5dd5573f9700f6d5983af524b8eaf82665be (patch) | |
tree | 25580fd5cf8a4867c2b4fecadf013d3887d5cd7f /ddms/app/src | |
parent | cef07a6a4e2e55743187afdfd8a4f647ab70581f (diff) | |
download | sdk-88ee5dd5573f9700f6d5983af524b8eaf82665be.zip sdk-88ee5dd5573f9700f6d5983af524b8eaf82665be.tar.gz sdk-88ee5dd5573f9700f6d5983af524b8eaf82665be.tar.bz2 |
New implementation of native heap - layout only.
Address resolution to symbols to come in future CL's.
Diffstat (limited to 'ddms/app/src')
-rw-r--r-- | ddms/app/src/com/android/ddms/UIThread.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ddms/app/src/com/android/ddms/UIThread.java b/ddms/app/src/com/android/ddms/UIThread.java index fb8a224..0a667d4 100644 --- a/ddms/app/src/com/android/ddms/UIThread.java +++ b/ddms/app/src/com/android/ddms/UIThread.java @@ -122,7 +122,7 @@ public class UIThread implements IUiSelectionListener, IClientChangeListener { public static final int PANEL_HEAP = 2; - public static final int PANEL_NATIVE_HEAP = 3; + private static final int PANEL_NATIVE_HEAP = 3; private static final int PANEL_ALLOCATIONS = 4; @@ -134,7 +134,8 @@ public class UIThread implements IUiSelectionListener, IClientChangeListener { private static TablePanel[] mPanels = new TablePanel[PANEL_COUNT]; private static final String[] mPanelNames = new String[] { - "Info", "Threads", "VM Heap", "Native Heap", "Allocation Tracker", "Sysinfo" + "Info", "Threads", "VM Heap", "Native Heap", + "Allocation Tracker", "Sysinfo" }; private static final String[] mPanelTips = new String[] { @@ -398,7 +399,12 @@ public class UIThread implements IUiSelectionListener, IClientChangeListener { mPanels[PANEL_THREAD] = new ThreadPanel(); mPanels[PANEL_HEAP] = new HeapPanel(); if (PrefsDialog.getStore().getBoolean(PrefsDialog.SHOW_NATIVE_HEAP)) { - mPanels[PANEL_NATIVE_HEAP] = new NativeHeapPanel(); + if (System.getenv("ANDROID_DDMS_NEW_HEAP_PANEL") != null) { + mPanels[PANEL_NATIVE_HEAP] = + new com.android.ddmuilib.heap.NativeHeapPanel(getStore()); + } else { + mPanels[PANEL_NATIVE_HEAP] = new NativeHeapPanel(); + } } else { mPanels[PANEL_NATIVE_HEAP] = null; } |