The DDMS has a nice feature of tracking object allocations. I’m wondering how this feature is implemented. Is it done inside the VM? Where can I find the code?
The DDMS has a nice feature of tracking object allocations. I’m wondering how this
Share
A good starting point is probably dalvik/vm/AllocTracker.cpp. Also, look for usages of
dvmTrackAllocationelsewhere in the code.