1

我正在尝试在 android 中使用 Memory Analyzer 工具。当我完全按照他们的一个文档进行操作时,我得到了这样的图表。博客停在那里。没有提到内存泄漏。我应该从这些图表中推断出什么?谁能告诉我如何从这些图表中找到内存泄漏或者这些图表如何有助于发现内存泄漏。这方面的任何帮助都是可观的。我将提供更多细节

内存分析器工具给出的一些描述......

    One instance of "com.android.ide.eclipse.adt.internal.sdk.Sdk" loaded by "com.android.ide.eclipse.adt" occupies 60,836,984 (57.41%) bytes. The memory is accumulated in one instance of "com.android.ide.eclipse.adt.internal.sdk.Sdk" loaded by "com.android.ide.eclipse.adt".

    Keywords
    com.android.ide.eclipse.adt.internal.sdk.Sdk
    com.android.ide.eclipse.adt

     Shortest Paths To the Accumulation Point

    Class Name  Shallow Heap    Retained Heap

    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 
4

0 回答 0