Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 738
Erdal Avatar asked Jul 21 '11 21:07

Erdal


1 Answers

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.

like image 73
Mostafa Avatar answered Oct 20 '22 00:10

Mostafa