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

后端 未结 2 364
后悔当初
后悔当初 2020-12-17 21:04

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.

2条回答
  •  心在旅途
    2020-12-17 21:36

    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.

提交回复
热议问题