Closed 1158536658 closed 1 year ago
如果是静态的页面就是为0
cocox2d游戏,不是静态页面
不想再说了,不支持游戏
再解释一下看perfdog的文档也是用surfaceview来计算游戏的帧率的,但是我们通过adb shell dumpsys SurfaceFlinger --latency [LayerName]获取设备的数据都是延迟的,基本上不返回或者比较久才返回,所以没法计算出当前的帧率,这个是adb对不同机器通信的问题,正常来说文档是推荐使用这种方式收集游戏和视频的fps的,但是试了很多机器基本都不行,perfdog可以应该使用了系统级别的api收集的。
但是我可以用命令在终端能实时获取到啊
指向layername了没有
稍等。我一会给你截图
正常的话刷新返回每次都不一样的数据,应该就可以有值了
麻烦更新版本再试试,我换了种获取surfaceview activity的方法,我测试抖音、QQ飞车这些居然有数据了
麻烦更新版本再试试,我换了种获取surfaceview activity的方法,我测试抖音、QQ飞车这些居然有数据了
还是不行获取到的fps都是1 或者2
那估计拿到的数据是这样的 正常这三列的数据都不为0就好了
什么app?什么场景测试的