4

I am creating an app that works on large images and data caching. I am using a top end model phone which I believe can handle memory issues better than other phones. Just want to make sure that it can also perform on other phones. Is there any tool or application in eclipse or separate that can monitor memory usage. Will be great If I can see the heap size; whether data is garbage collected instantly after activity finishes; etc.

Thanks

1 Answer 1

4

Mostly what you're looking for is the Heap and Allocation Tracker in the DDMS. In Eclipse, you can open the DDMS perspective by clicking Window->Open Perspective->Other...->DDMS.

Once in the perspective, you can click on the device you want to track, find the app you want to track in the Devices tab. Click the Update Heap button (it's a green cylinder icon), and the Heap tab on the right will open. The Allocation Track also in that perspective can be used to track object allocations.

Aside from that there is also the Eclipse Memory Analyzer tool which may come in handy.

DDMS documentation.

Related answer.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.