Android - Memory Allocation Tracker not tracking my test allocation
-
25-09-2019 - |
Question
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 idea why my big allocation is not displayed in the allocation tracker?
Solution
I'm not sure what the exact problem was. I tried the same code in a different class and it worked fine there.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow