android执行命令:
python3 android/androidPerf.py --package_name com.. --interval 3 --duration 30 到达duration时间后测试结束
ios执行命令:
iOS17性能测试脚本参考:https://github.com/15525730080/iOS17_perf
sudo python3 ios/ios17Perf.py --bundle_id tv.danmaku.bilianime --udid 00008101-00185468217A001E ctrl+c结束测试,结束后等待报告生成
iOS17以下性能测试执行命令: python3 ios/ios.py --bundle_id tv.danmaku.bilianime --duration 30 --interval 1
Jank计算方式参考:https://perfdog.qq.com/article_detail?id=10162&issue_id=0&plat_id=1
PerfDog Jank计算方法:
-
同时满足以下两条件,则认为是一次卡顿Jank.
a) 当前帧耗时>前三帧平均耗时2倍。
b) 当前帧耗时>两帧电影帧耗时(1000ms/24*2=84ms)。
-
同时满足两条件,则认为是一次严重卡顿BigJank.
a) 当前帧耗时>前三帧平均耗时2倍。
b) 当前帧耗时>三帧电影帧耗时(1000ms/24*3=125ms)。
1) BigJank:1s内严重卡顿次数 2) Jank(/10min):平均每10分钟卡顿次数。 3) BigJank(/10min):平均每10分钟严重卡顿次数