smart-test-ti / SoloX

💯SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试android performance\iOS性能测试ios performance\移动端性能测试mobile performance\APP性能测试app performance\app性能测试工具)
https://smart-test-ti.github.io/solox
MIT License
994 stars 177 forks source link

更新到2.4.8不管开不开surfaceview 开关都只能获取到jank获取不到FPS #117

Closed 1158536658 closed 1 year ago

rafa0128 commented 1 year ago

什么app?什么场景测试的

rafa0128 commented 1 year ago

如果是静态的页面就是为0

1158536658 commented 1 year ago

cocox2d游戏,不是静态页面

rafa0128 commented 1 year ago

不想再说了,不支持游戏

rafa0128 commented 1 year ago

再解释一下看perfdog的文档也是用surfaceview来计算游戏的帧率的,但是我们通过adb shell dumpsys SurfaceFlinger --latency [LayerName]获取设备的数据都是延迟的,基本上不返回或者比较久才返回,所以没法计算出当前的帧率,这个是adb对不同机器通信的问题,正常来说文档是推荐使用这种方式收集游戏和视频的fps的,但是试了很多机器基本都不行,perfdog可以应该使用了系统级别的api收集的。

1158536658 commented 1 year ago

但是我可以用命令在终端能实时获取到啊

rafa0128 commented 1 year ago

指向layername了没有

1158536658 commented 1 year ago

稍等。我一会给你截图

rafa0128 commented 1 year ago

正常的话刷新返回每次都不一样的数据,应该就可以有值了

rafa0128 commented 1 year ago

麻烦更新版本再试试,我换了种获取surfaceview activity的方法,我测试抖音、QQ飞车这些居然有数据了 d3aacfeb6f50bae13ccf7ac35fa2f69

1158536658 commented 1 year ago

麻烦更新版本再试试,我换了种获取surfaceview activity的方法,我测试抖音、QQ飞车这些居然有数据了 d3aacfeb6f50bae13ccf7ac35fa2f69

还是不行获取到的fps都是1 或者2

rafa0128 commented 1 year ago

那估计拿到的数据是这样的 image 正常这三列的数据都不为0就好了