Android的 - 我如何衡量ListView和其他视图的表现呢? [英] Android - How can I measure performance of ListView and other Views?

查看:134
本文介绍了Android的 - 我如何衡量ListView和其他视图的表现呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何测量的FPS我的的ListView

How can I measure the FPS of my ListView?

请参阅幻灯片从13-17的http://$c$c.google.com/events/io/2010/sessions/world-of-listview-android.html.

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

推荐答案

我不知道有关计算FPS(我想这应该做全系统和按次不计),但你可以使用的层次浏览器的个人主页每个查看性能。它给你测量,计算布局,并以毫秒为单位绘制每个查看所需的时间,并帮助您找到缓慢查看对象通过展示说明糟糕的表现黄色和红色圆圈。

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.

这篇关于Android的 - 我如何衡量ListView和其他视图的表现呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆