我正在使用 dumpsys gfxinfo 命令计算我的应用程序性能。在我的应用程序代码中进行性能改进更改后,我观察到总帧数和 Janky 帧数大大减少。
“总帧数”和“Janky Frames”数的减少意味着什么?它是性能的良好指标吗?
附加绩效报告。
性能改进后
################################
Total frames rendered: 1542
Janky frames: 584 (37.87%)
90th percentile: 81ms
95th percentile: 93ms
99th percentile: 129ms
Number Missed Vsync: 268
Number High input latency: 61
Number Slow UI thread: 471
Number Slow bitmap uploads: 15
Number Slow issue draw commands: 511
Total ViewRootImpl: 1
Total Views: 434
Total DisplayList: 505.57 kB
####################################
性能改进之前
###############################
Total frames rendered: 5185
Janky frames: 3229 (62.28%)
90th percentile: 101ms
95th percentile: 109ms
99th percentile: 121ms
Number Missed Vsync: 2487
Number High input latency: 65
Number Slow UI thread: 2088
Number Slow bitmap uploads: 75
Number Slow issue draw commands: 2967
Total ViewRootImpl: 1
Total Views: 435
Total DisplayList: 506.74 kB
######################################