大盈彩票开户

一个让你开挂的Android 性能测试方法 [复制链接]

2019-11-13 10:18
BlueManlove 阅读:1523 评论:0 赞:0
Tag:  Android 性能测试

大盈彩票开户AndroidXINGNENGCESHI,GENpcXINGNENGCESHIYIYANGFENWEIKEHUDUANJIFUWUQI,DANZAIKEHUDUANSHANGDEXINGNENGCESHIFENWEI2LEI,DUIYUYINGYONGXINGNENGCESHI,BAOKUOHENDUOCESHIXIANG,RUQIDONGSHIJIAN、NEICUN、CPU、GPU、GONGHAO、LIULIANGDENG。DANZHENDUIromBANBENDEXINGNENGCESHI,YIBANGUANZHUGONGHAO。

一、不同版本的性能测试

1、rom版本的性能测试

romBANBENYIBANJIUGUANZHUGONGHAOCESHI,BUGUOromBANBENDEGONGHAOCESHIGENYINGYONGDEGONGHAOCESHIHUIYOUSUOCHAYI,DANGRANZHISHIYONGLISHEJIFANGMIANDECHAYI,GONGJURENGRANCAIYONGANJIELUNDIANYUANYIJINXING。

2、应用的性能测试

YINGYONGDEXINGNENGCESHI,DUIYUQIDONGSHIJIAN、NEICUN、CPUCESHIDAJIAYIBANDOUSHIYONGWAIBUTIGONGDEDISANFANGGONGJULAIFUZHUCESHI,RUGT、ANCESHIDENG、ZHEIXIEGONGJUDEYUANLIDOUSHIJIYUDIAOYONGAndroidDICENGDEYIXIEapiLAIHUOQUDAOCESHISUOYONGDAODEZHI,DANGRANWOMENYEKEYICAIYONGQITAFANGFA,RUSHIYONGAndroidBENSHENTIGONGDEYITAOadbJIKEWANCHENGSHANGSHUCESHI。

一个让你开挂的Android 性能测试方法

大盈彩票开户DUIYUGPU、GONGHAO、DENGCESHILAISHUO,YONGDISANFANGGONGJUCESHIDEDAODESHUZHIYIBANDOUBUSHIHENZHUNQUE,ZHEIGESHIHOUWOMENXUYAOYINRUYINGJIANLAIJINXINGCESHILE,GPUKEYICAIYONGGAOSUXIANGJILAIJINXINGCESHI,GONGHAOKEYISHIYONGWANYONGBIAOHUOANJIELUNDIANYUANYILAIJINXINGCESHI(ps:YOUYINGJIANDONGSHOUNENGLIDEKEYIDIYYIGEXIAOBANJINXING)。

3、Android的性能测试

大盈彩票开户GAIBENFENNEIRONGWEIJINTIANZHUYAOXIANGSHUDENEIRONG,JUTIFENXIJIANXIAWEN。

二、关于Android的性能测试

1、启动时间

大盈彩票开户SHOUXIAN,WOMENLAISHUOSHUOQIDONGSHIJIAN。GUANYUYINGYONGDEQIDONGSHIJIANDECESHI,FENWEISANLEI:

①首次启动--应用首次启动所花费的时间

②非首次启动--应用非首次启动所花费的时间

③应用界面切换大盈彩票开户--应用界面内切换所花费的时间那么如何来做启动时间的测试呢,一般我们分为2类,一类为使用软件来测试,一类为使用硬件来测试,首先我们说说软件测试的方法,可能大部分人都比较通晓使用Android提供的DisplayManager来获取activity的启动时间。

一个让你开挂的Android 性能测试方法

BUZHOU:

一个让你开挂的Android 性能测试方法

TONGGUOJISUANactivityZUIHOUSHENGYUDESHIJIANZHIHEJIKE(ZHEILIKEYISHIYONGexcelBIAOGEZIDONGXIANGJIAYEKEYISHIYONGSUANFA,WOJIUBUXIANGXIJIESHAOLE)。

CHULEDisplay ManagerDEDAYINSHIJIANFANGFAHOU,HAIYOUTONGGUOGUANZHUamDEQIDONGSHIJIANJIDisplay ManagerDAYINDEJIESHUSHIJIAN,TONGGUOLIANGZHESHIJIANZHIJIANXIANGJIANYENENGDEDAOYINGYONGDEQIDONGSHIJIAN,HAIYOUKEYITONGGUOPower ManagerLAIJISUANDAYINSHIJIAN,ZAIYINGYONGQIDONGDESHIHOU,WOMENKEYIGUANZHUActivity Manager-LaunchDEBIANHUALAIJISUANYINGYONGDEQIDONGSHIJIAN,HAIYOUKEYITONGGUOJIETUTONGJIQIDONGSHIJIAN,DUIYUZIYANYINGYONG,ZUIXIAOLVDEMOGUOYUZHIJIEZAICHENGXUZHONGCHARUDAYINSHIJIANDEJIEDIANLE。

CHULERUANJIANCESHIDEFANGFA,HAIYOUYINGJIANCESHI,WOMENKEYISHIYONGGAOSUXIANGJIHUOZHESHOUJI,CAIYONGLUXIANGDEFANGFABAYINGYONGQIDONGGUOCHENGJILUZHIXIALAI,RANHOUTONGGUORENGONGSHUZHENHUOZHECHENGXUSHUZHENDEFANGSHIJISUANQIDONGSHIJIAN。

2、内存消耗

1)内存消耗概念

大盈彩票开户ZHEIGECESHIJIEDIANDESHEJIMUBIAOSHIWEILERANGYINGYONGBUZHANYONGGUODUODEXITONGZIYUAN,QIEJISHISHIFANGNEICUN,BAOZHANGZHENGGEXITONGDEWENDINGXING,DANGRANGUANYUNEICUNCESHI,ZAIZHEILIWOMENXUYAOYINRUJIGEGAINIAN:KONGXIANZHUANGTAI、ZHONGDENGGUIGE、MANGUIGE。

一个让你开挂的Android 性能测试方法

空闲状态大盈彩票开户:指打开应用后,点击home键让应用后台运行,此时应用处于的状态叫做空闲。

中等规格和满规格大盈彩票开户:指的是对应用的操作时间的间隔长短不一,中等规格时间较长,满规格时间较短。

JIEXIALAIWOMENSHUOSHUOZAINEICUNCESHIZHONG,CUNZAIHENDUOCESHIZIXIANG,RUXIAQINGDANSUOSHI:

①KONGXIANZHUANGTAIXIADEYINGYONGNEICUNXIAOHAOQINGKUANG

②ZHONGDENGGUIGEZHUANGTAIXIADEYINGYONGNEICUNXIAOHAOQINGKUANG

③MANGUIGEZHUANGTAIXIADEYINGYONGNEICUNXIAOHAOQINGKUANG

④YINGYONGNEICUNFENGZHIQINGKUANG

⑤YINGYONGNEICUNXIELUQINGKUANG

⑥YINGYONGSHIFOUCHANGZHUNEICUN

大盈彩票开户⑦YALICESHIHOUDENEICUNSHIYONGQINGKUANG

2)关于Android内存测试方法分类

①SHIYONGAndroidBENSHENTIGONGDEActivityManager.MemoryInfo()FANGFAHUODE(CIFANGFAQINGBAIDUHUOgoogle)CILEIDISANFANGGONGJUYOURUWANGYIDEEmmagee、ANCESHI、TENGXUNDEGTDENG。

大盈彩票开户②SHIYONGAndroidTIGONGDEDUIYINGNEIRONG,LAIHUOQU。

一个让你开挂的Android 性能测试方法

③SHIYONGAndroidTIGONGDEprocrank。ZHEILIWOMENXIANGJIEYIXIAprocrankFANGFA(PICHULI)。

SHOUXIAN,QUgoogleHUOQUprocrank、procmem、libpagemap.soSANGEWENJIAN;RANHOUpushWENJIAN,ZHIXING;ZUIHOU,SHENGXIADEJIUSHIZHENGLICESHISHUJULE。

一个让你开挂的Android 性能测试方法

3)关于内存泄露方面的测试

大盈彩票开户KEYITONGGUOJIGEFANGMIANLAICESHI:

①TONGGUOmonkeyYALICESHIJILUNEICUNSHIYONGQINGKUANG,FENXISHUJUQUXIANTUJIRIZHIQINGKUANG;

②TONGGUOeclipseSHANGDEmat+heapLAIFENXICUNZAINEICUNXIELUFANGMIANDEJIEDIAN。

3、CPU方面的测试

1)子项清单

CPUGENNEICUNYIYANG,CUNZAIYIXIECESHIZIXIANG,RUXIAQINGDANSUOSHI:

大盈彩票开户①KONGXIANZHUANGTAIXIADEYINGYONGCPUXIAOHAOQINGKUANG

大盈彩票开户②ZHONGDENGGUIGEZHUANGTAIXIADEYINGYONGCPUXIAOHAOQINGKUANG

③MANGUIGEZHUANGTAIXIADEYINGYONGCPUXIAOHAOQINGKUANG

④YINGYONGCPUFENGZHIQINGKUANG

2)CPU的测试方法

大盈彩票开户1.SHIYONGAndroidTIGONGDE


一个让你开挂的Android 性能测试方法

2.SHIYONGtopMINGLING

一个让你开挂的Android 性能测试方法

3.DISANFANGRUANJIAN

大盈彩票开户LIRU:3Dmax、ANTUTUDENG。

3)GPU的测试方法

大盈彩票开户ZICONGCPUJINEICUNHOU,GPUZHEIGECIDUIYUPCXINGNENGCESHIZHEYEBUMOSHENGLE。3Dmax、ANTUTUDENGZHILEIDEDISANFANGRUANJIAN,RANGGPUZAIYIDONGDUANXINGNENGCESHILINGYUDOUZHIXIAO。DANDUIYUYINGYONGDEGPUGAIRUHELAICESHINI?WOMENXIANYINRUJIGEMINGCI:GUODUHUIZHI、ZHENLV、ZHENFANGCHA。

一个让你开挂的Android 性能测试方法

过度绘制:是指界面显示的activity套接了多层而导致;

帧率:是指屏幕刷新率;

帧方差:是指屏幕刷新帧间隔方差。

DUIYUGPUDECESHIZHUYAOBAOKUOYIXIAJIGECESHIZIXIANG:JIEMIANGUODUHUIZHI、PINGMUHUADONGZHENSULV、PINGMUHUADONGPINGHUADU。

①过度测绘

TAZHUYAOTONGGUORENGONGJINXINGCESHI。DAKAIKAIFAZHEXUANXIANGZHONGDEXIANSHIGPUGUODUHUIZHILAIJINXINGCESHI(PS:ZHIYOUAndroid4.2JIYISHANGDEBANBENCAIJUBEICIGONGNENG)。YANSHOUDEBIAOZHUNWEI:

大盈彩票开户a、BUYUNXUCHUXIANHEISEXIANGSU

b、BUYUNXUCUNZAI4xGUODUHUIZHI

c、BUYUNXUCUNZAIMIANJICHAOGUOPINGMU1/4QUYUDE3xGUODUHUIZHI(DANHONGSEQUYU)

②屏幕滑动帧速率的2种主要方法

→ RUANJIANCESHIFANGFA

大盈彩票开户a、SHOUJIDUANXUDAKAIKAIFAZHEXUANXIANGZHONGDEQIYONGGENZONGHOUGOUXUANGraphicsHEView

b、QIDONGSDKGONGJUSystraceCHAJIAN,GOUXUANBEICEYINGYONG,DIANJISystraceCHAJIAN,ZAIDANCHUDEDUIHUAKUANGZHONGSHEZHICHIXUZHUAQUSHIJIAN,ZAItracetapsXIAMIANGOUXUANgfxJIviewXUANXIANG,

大盈彩票开户c、RENHUADONGJIEMIANKEYITONGGUOJIEPAILAIJINXINGHUADONGHUOZHESAODONG,ZHENLVSHUJUHUIBAOCUNDAOMORENLUJINGXIA,MORENMINGCHENGWEItrace.html

大盈彩票开户d、JIANGtrace.htmlWENJIANKAOBEIDAOlinuxXITONGXIATONGGUOMINGLINGJINXINGZHUANHUAN,SHENGCHENGtrace.csvWENJIAN:

一个让你开挂的Android 性能测试方法

大盈彩票开户e、YONGexcelDAKAIWENJIANJISUANDEDAOZHENLV

→ YINGJIANFANGFA

大盈彩票开户ZHEILIXUYAOYINRUGAOSUXIANGJI,DAKAIGAOSUXIANGJI,KAIQISHEXIANGMOSHI,LUZHIRENHUADONGHUOZHESAODONGBEICEYINGYONGDESHIPIN,ZAITONGGUORENGONGHUOZHECHENGXUSHUZHENDEFANGFADUIJIEGUOJINXINGJISUANDEDAOZHENLV。

一个让你开挂的Android 性能测试方法

③屏幕滑动平滑度测试

大盈彩票开户FANGFARUTONGZHENLVCESHI,WEIYIDECHAYIJIUSHIZUIHOUDEJIEGUOJISUANGONGSHIDECHAYI。GPUDECESHIMUQIANYEJIESHIYONGDEJUNWEIYINGJIANLAIJINXING,RUANJIANCESHIDESHUJUXIANGJIAOYINGJIANCHAYIJIAODA,DUIYUZHENLVJIZHENFANGCHADECESHIBIAOZHUNERYAN,XUDUIDAIBUTONGJIXINGSHEDINGBUTONGDEBIAOZHUN。

4、功耗测试

1)功耗测试类别

GONGHAOCESHIZHUYAOCONGYIXIAJIGEFANGMIANRUSHOUJINXINGCESHI:

大盈彩票开户a、CESHISHOUJIANZHUANGMUBIAOAPKQIANHOUDAIJIGONGHAOWUMINGXIANCHAYI。

大盈彩票开户b、CHANGJIANSHIYONGCHANGJINGZHONGNENGGOUZHENGCHANGJINRUDAIJI,DAIJIDIANLIUZAIZHENGCHANGFANWEINEI。

大盈彩票开户c、ZHANGSHIJIANLIANXUSHIYONGYINGYONGWUYICHANGHAODIANXIANXIANG。

一个让你开挂的Android 性能测试方法

2)测试方法

①软件测试

A、DISANFANGGONGJU:RUJINSHANDIANCHIGUANJIAZHILEIDE;

B、ZIXIEGONGJU:ZHEILIYIBANHUISHIYONG3ZHONGFANGFA:

大盈彩票开户DIYIZHONG,JIYUAndroidTIGONGDEPowerManager.WakeLockLAIJINXING;

DIERZHONG,BIJIAOFUZAYIDIAN,GONGHAODEJISUAN=CPUXIAOHAO+WakelockXIAOHAO+SHUJUCHUANSHUXIAOHAO+GPSXIAOHAO+Wi-FiLIANJIEXIAOHAO;

DISANZHONG,TONGGUOadbshelldumpsysbatteryLAIHUOQU。

②硬件测试

大盈彩票开户ZAIZHEILI,WOMENYIBANSHIYONGWANYONGBIAOHUOZHEGONGHAOYIJINXINGCESHI。SHIYONGGONGHAOYICESHIDESHIHOU,XUYAOZHIZUOJIADIANCHILAIJINXINGDE,YOUXIEBUNENGBACHADIANCHIDESHOUJI,HAIXUYAOHANJIECAINENGJINXINGGONGHAOCESHI。

5、流量测试

大盈彩票开户XINGNENGCESHIDE——LIULIANG,DANGRANWOSUOZHIDEXINGNENGCESHISHIZHENDUIDABUFENYINGYONGERYANDE,KENENGHAIYOUBUFENYINGYONGHUIGUANZHUWANGSU、RUOWANGZHILEIDECESHI。

1)流量测试,同样需要引入几个名词:中等负荷、高负荷。

ZHONGDENGFUHE:YINGYONGZHENGCHANGCAOZUO

GAOFUHE:YINGYONGJIXIANCAOZUO

2)测试项包括:

a、YINGYONGSHOUCIQIDONGLIULIANGTISHI;

b、YINGYONGHOUTAILIANXUYUNXING2XIAOSHIDELIULIANGZHI;

c、YINGYONGGAOFUHEYUNXINGDELIULIANGFENGZHI;

大盈彩票开户d、YINGYONGZHONGDENGFUHEYUNXINGSHIDELIULIANGJUNZHI;

3)流量测试一般都是用软件来进行的,这里我们一般分为2类:

大盈彩票开户a、CAIYONGSHICHANGTIGONGDEDISANFANGGONGJULAIJINXINGCESHI,RULIULIANGBAOZHILEIDE;

b、ZIYANGONGJUJINXINGCESHI。


我来说两句
您需要登录后才可以评论 登录 | 立即注册
facelist
所有评论(0)
领先的中文移动开发者社区
18620764416
7*24全天服务
意见反馈:1294855032@qq.com

SAOYISAOGUANZHUWOMEN

Powered by X3.2© 2001-2019 ( )