Search code examples
androidperformancelistviewframe-rate

Android - How can I measure performance of ListView and other Views?


How can I measure the FPS of my ListView?

See the slides 13-17 from http://code.google.com/events/io/2010/sessions/world-of-listview-android.html.


Solution

  • I don't know about calculating FPS (I guess that should be done system-wide and is not calculated per view), but you can use Hierarchy Viewer to profile performance of each View. It gives you time needed to measure, calculate layout of, and draw each View in milliseconds, and helps you to find slow View objects by showing yellow and red circles indicating bad performance.