我正在尝试在android中使用Memory Analyzer工具。
当我完全按照其中一个文档进行操作时,我得到了一个这样的图形。
博客停在那里。没有人说过内存泄漏。我应该从这些图中推断出什么? 任何人都可以告诉我如何从这些图表中找到内存泄漏或这些图表如何有助于发现内存泄漏。在这方面的任何帮助都是可观的。我将提供更多细节
“com.android.ide.eclipse.adt”加载的“com.android.ide.eclipse.adt.internal.sdk.Sdk”的一个实例占用60,836,984(57.41%)个字节。内存是在“com.android.ide.eclipse.adt”加载的“com.android.ide.eclipse.adt.internal.sdk.Sdk”的一个实例中累积的。
关键字
com.android.ide.eclipse.adt.internal.sdk.Sdk com.android.ide.eclipse.adt
积累点的最短路径
类名浅堆保留堆
com.android.ide.eclipse.adt.internal.sdk.Sdk @ 0x911c130
64 60,836,984
sCurrentSdk class com.android.ide.eclipse.adt.internal.sdk.Sdk @ 0x207de4c0
16 6,672
[129] java.lang.Object[640] @ 0x9759008
2,576 81,632
elementData java.util.Vector @ 0x8d38170
24 81,656
classes org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader @ 0x8d0a570 com.android.ide.eclipse.adt
64 119,256
<classloader> class com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController$6 @ 0x228b8630
0 0
<class> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController$6 @ 0xc626c60 Thread
120 25,664
<classloader> class com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController$7 @ 0x228b8d48 »
0 0
<classloader> class com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController @ 0x225cdd70 »
40 280
<classloader> class com.android.ide.eclipse.adt.internal.project.AndroidClasspathContainer @ 0x20807a68 »
0 0
<classloader> class com.android.ide.eclipse.adt.internal.actions.AvdManagerAction @ 0x20b6cc78 »
0 0
<classloader> class com.android.ide.eclipse.adt.internal.actions.SdkManagerAction @ 0x20b6e080 »
0 0
<classloader> class com.android.ide.eclipse.adt.internal.wizards.actions.NewXmlFileAction @ 0x20b70728 »
0 0
<classloader> class com.android.ide.eclipse.adt.internal.wizards.actions.NewTestProjectAction @ 0x20b713b8 »
0 0
<classloader> class com.android.ide.eclipse.adt.internal.wizards.actions.NewProjectAction @ 0x20b71de0 »
0 0
<classloader> class com.android.ide.eclipse.adt.internal.lint.RunLintAction @ 0x20b774f8 »
0 0
<classloader> class com.android.ide.eclipse.adt.internal.editors.manifest.ManifestEditor @ 0x21b9fb10 »
16 16
Total: 11 entries
Accumulated Objects
Class Name Shallow Heap Retained Heap Percentage
com.android.ide.eclipse.adt.internal.sdk.Sdk @ 0x911c130
64 60,836,984 57.41%
com.android.ide.eclipse.adt.internal.build.DexWrapper @ 0x8837398
40 36,174,648 34.14%
java.util.HashMap @ 0x88373c0
40 24,623,640 23.24%
com.android.ide.eclipse.adt.internal.sdk.LayoutDeviceManager @ 0x8483688
32 14,400 0.01%
com.android.sdklib.PlatformTarget @ 0x81f6600
48 13,880 0.01%
com.android.sdklib.internal.avd.AvdManager @ 0x8778f40
24 7,064 0.01%
com.android.sdklib.SdkManager @ 0x80aca30
16 1,256 0.00%
com.android.sdklib.AddOnTarget @ 0x88c2938
56 1,224 0.00%
java.util.HashMap @ 0x88373e8
40 648 0.00%
java.util.ArrayList @ 0x8778f58
24 80 0.00%
java.util.ArrayList @ 0x8778f70
24 80 0.00%
class com.android.sdklib.IAndroidTarget$IOptionalLibrary[] @ 0x20d7f788
0 0 0.00%
Total: 11 entries
344 60,836,920 0.574
Accumulated Objects by Class
Label Number of Objects Used Heap Size Retained Heap Size
com.android.ide.eclipse.adt.internal.build.DexWrapper
All 1 objects 1 40 36,174,648
java.util.HashMap
All 2 objects 2 80 24,624,288
com.android.ide.eclipse.adt.internal.sdk.LayoutDeviceManager
All 1 objects 1 32 14,400
com.android.sdklib.PlatformTarget
All 1 objects 1 48 13,880
com.android.sdklib.internal.avd.AvdManager
All 1 objects 1 24 7,064
com.android.sdklib.SdkManager
All 1 objects 1 16 1,256
com.android.sdklib.AddOnTarget
All 1 objects 1 56 1,224
java.util.ArrayList
All 2 objects 2 48 160
java.lang.Class
All 1 objects 1 0 0
Total: 9 entries
11 344 60,836,920