Android的==>内存浅析==> Eclipse的内存分析器?内存、分析器、Android、GT

2023-09-11 12:35:26 作者:抢了我辣条还想跑

我需要检查内存泄漏我的应用程序,我也需要看到我的应用程序的内存分配。 我下载并安装了Eclipse的内存分析器,它看起来像的第一步是打开一个堆转储。 但究竟什么是一堆垃圾,我怎么可以创建一个堆转储。 而究竟我该怎么用这个软件,我做了一些使用Google,但我找不到任何有用的信息 谢谢

I need to check my application for memory leaks, i also need to see the memory allocation of my application. I downloaded and installed eclipse memory analyzer, and it looks like the first step is to open a heap dump. But what is a heap dump, how can i create a heap dump. And how exactly am i going to use this software, I did some googling but i couldn't find any useful information thanks

推荐答案

当您调试应用程序,打开 DDMS 的Eclipse中。在工具栏上有一个堆转储按钮,你可以用它来生成一个堆转储,以查看Eclipse的内存分析器。这是唯一支持我觉得跟1.6+ 2.0+或SDK。

When you debug your app, open DDMS in Eclipse. On the toolbar there is a heap dump button that you can use to generate a heap dump to view in Eclipse memory analyzer. This is only supported I think with the 1.6+ or 2.0+ SDK.