开发者

Android - Memory Allocation Tracker not tracking my test allocation

I'm currently playing around with the memory allocation tracker of the DDMS tool. In my project i insert the following line in a button's onClickListener:

memTrackerTest = new byte[1024*1024];

memTrackerTest is a private variable of the Activity.

I would expect to see the allocation in the tracker but unfortunately it doesn't appear. Other parts of my code, like the creation of a ProgressDialog show up fine.

Any 开发者_如何学Goidea why my big allocation is not displayed in the allocation tracker?


I'm not sure what the exact problem was. I tried the same code in a different class and it worked fine there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜