开发者

Android - Memory Allocation Tracker not tracking my test allocation

开发者 https://www.devze.com 2023-02-02 20:20 出处:网络
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:

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

精彩评论

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

关注公众号