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
993 stars 177 forks source link

not getting fps values #167

Closed itsMyRepos closed 1 year ago

itsMyRepos commented 1 year ago

getting this below error,

[E 230530 12:16:16 fps:265] an exception hanpend in fps _collector_thread , reason unkown! [D 230530 12:16:16 fps:267] Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\solox\public\fps.py", line 240, in _collector_thread refresh_period, new_timestamps = self._get_surfaceflinger_frame_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\solox\public\fps.py", line 378, in _get_surfaceflinger_frame_data self.focus_window = self.get_surfaceview_activity() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\solox\public\fps.py", line 70, in get_surfaceview_activity activity_name = activity_line.split(' ')[2]


    IndexError: list index out of range
rafa0128 commented 1 year ago

please run "adb shell dumpsys SurfaceFlinger --list | grep [packagname]", and show me the result

itsMyRepos commented 1 year ago

this is the output of the command, i am checking for subwaysurfer

3b40aef ActivityRecordInputSink com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36981 ActivityRecord{1405bce u0 com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity}#36973 f82a80f com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36982 Background for SurfaceView[com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity]#36989 SurfaceView[com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity]#36987 SurfaceViewcom.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36988 com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36983 Bounds for - com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36986

pawanindium commented 1 year ago

please help to check this, thanks

rafa0128 commented 1 year ago

please help to check this, thanks

Will be fixed in the next version

rafa0128 commented 1 year ago

this is the output of the command, i am checking for subwaysurfer

3b40aef ActivityRecordInputSink com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36981 ActivityRecord{1405bce u0 com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity}#36973 f82a80f com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36982 Background for SurfaceView[com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity]#36989 SurfaceView[com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity]#36987 SurfaceViewcom.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36988 com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36983 Bounds for - com.kiloo.subwaysurf/com.sybogames.chili.multidex.ChiliMultidexSupportActivity#36986

Step1 : You can turn off the 'SurfaceView' switch Step2 : Set the following settings on your phone: (Developer - GPU rendering mode - adb shell dumpsys gfxinfo)