I'm having some performance problems with my application and I've found this article for helping me.
The problem is that when I execute Hierarchy viewer, I always have n/a as Measure
, Layout and Draw time for each component of the view.
I'm using Android 3.2 in my virtual device.
Thanks.
EDIT
I add a capture of the Hierarchy Viewer output:
When I use the Hierarchy viewer with the initial activity (a very simple activity), it works perfectly. But when i used this activity, I can't see the times for drawing each component.
To see the three measures select your root view and click this button . Its description is "Obtain layout times for tree rooted at selected node". The button has to be placed on the top of the Hierarchy viewer.
Android hierarchy viewer is working on Android 2.3 and onwards. It does not matter what your device os version is. Your target api version should be 2.3 or higher. In that case you can change the min version in project properties.
If you want to optimize your layout you need to do several things. This article explain how to optimize and the areas you should concern more.
Click where the arrows are in this pic
That is, the root node, and then the "profile node" button in the top right.
Then click individual nodes and it shows timings rather than n/a
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With