• APP流畅度-adb shell dumpsys gfxinfo 命令解析


    -------------------------------------------------------------------

    Graphics info for pid 31148 [com.android.settings]: 表明当前dump的为设置界面的帧信息,pid为31148

    Total frames rendered: 105 本次dump搜集了105帧的信息

    Janky frames: 2 (1.90%) 105帧中有2帧的耗时超过了16ms,卡顿概率为1.9%

    Number Missed Vsync: 0 垂直同步失败的帧

    Number High input latency: 0 处理input时间超时的帧数

    Number Slow UI thread: 2 因UI线程上的工作导致超时的帧数

    Number Slow bitmap uploads: 0 因bitmap的加载耗时的帧数

    Number Slow issue draw commands: 1 因绘制导致耗时的帧数

    HISTOGRAM: 5ms=78 6ms=16 7ms=4 ... 直方图数据,表面耗时为0-5ms的帧数为78,耗时为5-6ms的帧数为16,同理类推。

     Draw: 表示在Java中创建显示列表部分中,OnDraw()方法占用的时间
    Prepare: 准备时间
    Process: 表示渲染引擎执行显示列表所花的时间,view越多,时间就越长
    Execute: 表示把一帧数据发送到屏幕上排版显示实际花费的时间,其实是实际显示帧数据的后台缓存区与前台缓冲区交换后并将前台缓冲区的内容显示到屏幕上的时间
    将上面的四个时间加起来就是绘制一帧所需要的时间,如果超过了16.67就表示掉帧了

  • 相关阅读:
    CF13D. Triangles
    CF1142C. U2
    2020 省选模拟测试 Round #8 solution (20/02/07)
    2020 省选模拟测试 Round #7 solution (20/02/06)
    2020 省选模拟测试 Round #6 solution (20/02/05)
    2020 省选模拟测试 Round #5 solution (20/02/04)
    2020 省选模拟测试 Round #4 solution (20/02/03)
    CF1291D. Irreducible Anagrams
    CF1264E. Beautiful League
    bzoj2002 弹飞绵羊
  • 原文地址:https://www.cnblogs.com/danyuzhu11/p/11714220.html
Copyright © 2020-2023  润新知