Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不懂就问:Android FPS 数据获取不到,请问需要怎么开启? #249

Closed
JIUJIUs opened this issue Dec 18, 2023 · 52 comments
Closed
Labels
bug Something isn't working

Comments

@JIUJIUs
Copy link

JIUJIUs commented Dec 18, 2023

SoloX :2.8.6
Python :3.10.11
System:WIndows 11
Browser:Chrome
Device:OnePlus 11, PHB110, Android 13

问题:FPS 数据获取不到,一直输出是 0 ,请问需要开启什么嘛?求大佬指引~

image
image
image

@katyhudson
Copy link

[开启

SoloX :2.8.6 Python :3.10.11 System:WIndows 11 Browser:Chrome Device:OnePlus 11, PHB110, Android 13

问题:FPS 数据获取不到,一直输出是 0 ,请问需要开启什么嘛?求大佬指引~
看这个吧,(#237)

@katyhudson
Copy link

SoloX :2.8.6 Python :3.10.11 System:WIndows 11 Browser:Chrome Device:OnePlus 11, PHB110, Android 13

问题:FPS 数据获取不到,一直输出是 0 ,请问需要开启什么嘛?求大佬指引~

建议关闭gfxinfo,用页面的surfaceview

@rafa0128
Copy link
Member

@JIUJIUs 看你的app页面是啥。华为机器适配会好一点,其他机器不太好说。主要还是surfaceview不同的品牌规则可能不一样。
一般为0的话要么你是相对静止的页面,要么就是没有适配你的机器了

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 18, 2023

@JIUJIUs 看你的app页面是啥。华为机器适配会好一点,其他机器不太好说。主要还是surfaceview不同的品牌规则可能不一样。 一般为0的话要么你是相对静止的页面,要么就是没有适配你的机器了

App 是一个游戏,在战斗场景中打斗~

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 18, 2023

[开启

SoloX :2.8.6 Python :3.10.11 System:WIndows 11 Browser:Chrome Device:OnePlus 11, PHB110, Android 13
问题:FPS 数据获取不到,一直输出是 0 ,请问需要开启什么嘛?求大佬指引~
看这个吧,(#237)

感谢,我尝试一下~

@rafa0128 rafa0128 added bug Something isn't working question Further information is requested and removed bug Something isn't working question Further information is requested labels Dec 18, 2023
@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 18, 2023

surfaceview

试了下用 surfaceview ,但还是没有 FPS 数据。(设备:ADT-AN00、PHB110)

@rafa0128
Copy link
Member

surfaceview

试了下用 surfaceview ,但还是没有 FPS 数据。(设备:ADT-AN00、PHB110)

@JIUJIUs 你试试华为,我看看是设备兼容问题还是app兼容问题

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 18, 2023

surfaceview

试了下用 surfaceview ,但还是没有 FPS 数据。(设备:ADT-AN00、PHB110)

@JIUJIUs 你试试华为,我看看是设备兼容问题还是app兼容问题

稍等下,我要去借一台。

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

surfaceview

试了下用 surfaceview ,但还是没有 FPS 数据。(设备:ADT-AN00、PHB110)

@JIUJIUs 你试试华为,我看看是设备兼容问题还是app兼容问题

大佬,我华为没借到,但是借到一台晓龙 865 的红米,FPS 也是获取不到,日志如下~

192.168.10.209 - - [22/Dec/2023 11:23:45] "GET /apm/fps?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&surv=true&=1703215387872 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 11:23:45] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&process=8331%3Acom.tectree.eto&
=1703215387877 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 11:23:45] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&wifi_switch=true&process=8331%3Acom.tectree.eto&=1703215387874 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 11:23:46] "GET /apm/battery?platform=Android&device=8bc4c003(M2007J3SC)&
=1703215387875 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 11:23:46] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&process=8331%3Acom.tectree.eto&_=1703215387879 HTTP/1.1" 200 -
[E 231222 11:23:47 android_fps:294] an exception hanpend in fps _collector_thread , reason unkown!
[D 231222 11:23:47 android_fps:296] Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\android_fps.py", line 269, in _collector_thread
refresh_period, new_timestamps = self._get_surfaceflinger_frame_data()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\android_fps.py", line 434, in _get_surfaceflinger_frame_data
timestamp = [int(fields[0]), int(fields[1]), int(fields[2])]
ValueError: invalid literal for int() with base 10: 'SurfaceView'

@smart-test-ti smart-test-ti deleted a comment from JIUJIUs Dec 22, 2023
@rafa0128
Copy link
Member

游戏类app,只兼容了华为,没机器没办法
你先启动app到测试界面,然后执行:adb shell dumpsys SurfaceFlinger --list | findstr {pkgname} {deviceid}把结果发出来给我看看

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

游戏类app,只兼容了华为,没机器没办法 你先启动app到测试界面,然后执行:adb shell dumpsys SurfaceFlinger --list | findstr {pkgname} {deviceid}把结果发出来给我看看

C:\Users\Administrator>adb devices
List of devices attached
8bc4c003 device

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --list | findstr {com.tectree.eto} {8bc4c003}
FINDSTR: 无法打开 {8bc4c003}

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --list | findstr com.tectree.eto 8bc4c003
FINDSTR: 无法打开 8bc4c003

C:\Users\Administrator>

提示这个

@rafa0128
Copy link
Member

哦错了,adb -s device id shell dumpsys SurfaceFlinger --list | findstr pkgname

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

哦错了,adb -s device id shell dumpsys SurfaceFlinger --list | findstr pkgname

接入的设备就一台,这样。

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --list | findstr com.tectree.eto
AppWindowToken{1829465 token=Token{631e95c ActivityRecord{ec5a5c4 u0 com.tectree.eto/com.epicgames.unreal.GameActivity t189}}}#0
8f5bdf com.tectree.eto/com.epicgames.unreal.GameActivity#0
Background for -SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
Bounds for - com.tectree.eto/com.epicgames.unreal.GameActivity#0
SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
com.tectree.eto/com.epicgames.unreal.GameActivity#0

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

还有这个

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --list com.tectree.eto
Display Background#0
Display Root#0
mBelowAppWindowsContainers#0
WallpaperWindowToken{60fd82f token=android.os.Binder@822160e}#0
b3af8dd com.android.systemui.ImageWallpaper#0
com.android.systemui.ImageWallpaper#0
WallpaperWindowToken{e5a8599 token=android.os.BinderProxy@862cee0}#0
192389c com.android.keyguard.wallpaper.service.MiuiKeyguardLiveWallpaper#0
com.android.keyguard.wallpaper.service.MiuiKeyguardLiveWallpaper#0
com.android.server.wm.DisplayContent$TaskStackContainers@8131556#0
animationLayer#0
splitScreenDividerAnchor#0
WindowToken{572dbf4 android.os.BinderProxy@e0569c7}#0
3a42f1d DockedStackDivider#0
Stack=0#0
animation background stackId=0#0
Task=1#0
AppWindowToken{2cb8be3 token=Token{13a3812 ActivityRecord{8c59a74 u0 com.miui.home/.launcher.Launcher t1}}}#0
58f6db3 com.miui.home/com.miui.home.launcher.Launcher#0
homeAnimationLayer#0
Stack=49#0
animation background stackId=49#0
Task=189#0
Letterbox - right#0
AppWindowToken{1829465 token=Token{631e95c ActivityRecord{ec5a5c4 u0 com.tectree.eto/com.epicgames.unreal.GameActivity t189}}}#0
8f5bdf com.tectree.eto/com.epicgames.unreal.GameActivity#0
Background for -SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
Bounds for - com.tectree.eto/com.epicgames.unreal.GameActivity#0
SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
com.tectree.eto/com.epicgames.unreal.GameActivity#0
boostedAnimationLayer#0
mAboveAppWindowsContainers#0
WindowToken{946f8de android.os.BinderProxy@ddbc360}#0
cbfcabf AssistPreviewPanel#0
WindowToken{eefbff5 android.os.BinderProxy@451492c}#0
50f918a Aspect#0
WindowToken{f21ef0f android.os.BinderProxy@e6cf7e9}#0
ce38b9c com.zdanjian.zdanjian#0
#0
mImeWindowsContainers#0
WindowToken{9fb266b android.os.Binder@62507ba}#0
bec6eb5 InputMethod#0
WindowToken{7ca561e android.os.BinderProxy@77c0ea0}#0
97feff RoundCorner#0
WindowToken{66e4380 android.os.BinderProxy@6f250b2}#0
a83edb9 StatusBar#0
StatusBar#0
WindowToken{da60e03 android.os.BinderProxy@802eeb2}#0
14b1180 GestureStubHome#0
GestureStubHome#0
WindowToken{465f1dc android.os.BinderProxy@db1064f}#0
b4132e5 GestureStubBottom#0
GestureStubLeft#0
WindowToken{3193af8 android.os.BinderProxy@bc5925b}#0
585dbd1 GestureStubBottom#0
GestureStubRight#0
WindowToken{9429d92 android.os.Binder@4e6d71d}#0
WindowToken{9986d2b android.os.Binder@fe4317a}#0
Input Consumer pip_input_consumer#0
Display Overlays#0
WindowToken{a5dc22b android.os.BinderProxy@fc5ba7a}#0
356f688 RoundCorner#0
RoundCorner#0
WindowToken{241955d android.os.BinderProxy@aa8f334}#0
45d1ed2 RoundCorner#0
RoundCorner#1

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

还有这个

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#0
6944444
com.tectree.eto/com.epicgames.unreal.GameActivity#0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
38027950251482 38027991294711 38027979718253
38027953278826 38028005202732 38027979775388
38028047073878 38028086011847 38028064159659
38028444487680 38028487000753 38028472774034
38028940980232 38028978341377 38028964450857
38029441337992 38029479549398 38029464179190
38029945771898 38029994672731 38029976226377
38030443162366 38030488927366 38030463979398
38030943775023 38030981734814 38030967266064
38031428952314 38031464853616 38031452209970
38031927169397 38031959095751 38031948163876
38032428798251 38032460255334 38032449415282
38032929993511 38032968419136 38032956065282
38033426649813 38033473797469 38033458167990
38033927614969 38033974951948 38033955228615
38034121136219 38034158721271 38034148450803
38034302205490 38034346677365 38034324866323
38034576038875 38034611203615 38034601507209
38035074116531 38035105451427 38035091331948
38035574778042 38035613697729 38035600686583
38035689113614 38035731955594 38035722975073

@rafa0128
Copy link
Member

adb shell dumpsys SurfaceFlinger --latency SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
执行这个我看看

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

adb shell dumpsys SurfaceFlinger --latency SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0 执行这个我看看

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
20000000

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
6944444

@rafa0128
Copy link
Member

你拉一下代码,然后本地跑一下试试,solox目录执行python debug.py

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

我不是说拉代码吗

好吧,是执行 pip install -U solox 这个拉吧?

git clone https://github.com/smart-test-ti/SoloX.git

@rafa0128
Copy link
Member

git pull更新一下代码,重新执行一下我看看,我少加了日志

@smart-test-ti smart-test-ti deleted a comment from JIUJIUs Dec 22, 2023
@smart-test-ti smart-test-ti deleted a comment from JIUJIUs Dec 22, 2023
@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

来咯~

C:\SoloX\solox>python debug.py
[I 231222 14:59:30 debug:105] Running on http://192.168.10.209:50003/?platform=Android&lan=en (Press CTRL+C to quit)
WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.

  • Serving Flask app 'debug' (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
  • Restarting with stat
    [I 231222 14:59:31 debug:105] Running on http://192.168.10.209:50003/?platform=Android&lan=en (Press CTRL+C to quit)
    WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.
  • Debugger is active!
  • Debugger PIN: 312-783-392
  • Running on http://192.168.10.209:50003/ (Press CTRL+C to quit)
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /?platform=Android&lan=en HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/css/tabler.min.css HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/css/highlight.min.css HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/jquery.min.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/image/communicate.png HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/tabler.min.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/css/select2-bootstrap-5-theme.rtl.min.css HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/css/sweetalert2.min.css HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/css/select2.min.css HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/css/tabler.demo.min.css HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/css/select2-bootstrap-5-theme.min.css HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/tabler.demo.min.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/sweetalert2.min.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/select2.min.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/apexcharts.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/highlight.min.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/highstock.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/gray.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/html2canvas.min.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/js/socket.io.js HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:35] "GET /static/logo/logo.png HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:36] "GET /socket.io/?EIO=3&transport=polling&t=1703228376136-0 HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:36] "GET /socket.io/?EIO=3&transport=polling&t=1703228376148-2&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:36] "POST /socket.io/?EIO=3&transport=polling&t=1703228376148-1&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:36] "GET /socket.io/?EIO=3&transport=polling&t=1703228376233-3&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    [I 231222 14:59:36 common:74] Connected devices: ['8bc4c003(M2007J3SC)']
    192.168.10.209 - - [22/Dec/2023 14:59:36] "GET /solox/version?=1703228375960 HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:36] "GET /device/ids?platform=Android&
    =1703228375959 HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:37] "GET /socket.io/?EIO=3&transport=polling&t=1703228376239-4&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:37] "GET /static/logo/logo.png HTTP/1.1" 304 -
    192.168.10.209 - - [22/Dec/2023 14:59:37] "GET /socket.io/?EIO=3&transport=polling&t=1703228377359-5&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:38] "GET /socket.io/?EIO=3&transport=polling&t=1703228378232-6&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:39] "GET /socket.io/?EIO=3&transport=polling&t=1703228378263-7&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:44] "GET /socket.io/?EIO=3&transport=polling&t=1703228379258-8&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:46] "GET /socket.io/?EIO=3&transport=polling&t=1703228384299-9&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:46] "GET /package/pids?platform=Android&device=8bc4c003(M2007J3SC)&pkgname=com.tectree.eto&=1703228375961 HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:47] "GET /socket.io/?EIO=3&transport=polling&t=1703228386316-10&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    [I 231222 14:59:49 common:227] Clean up useless files ...
    [I 231222 14:59:49 common:863] stop scrcpy process
    [I 231222 14:59:49 common:234] Clean up useless files success
    192.168.10.209 - - [22/Dec/2023 14:59:49] "POST /apm/initialize HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:49] "GET /apm/set/network?platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&wifi_switch=true&type=pre&process=20805%3Acom.tectree.eto&
    =1703228375962 HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:50] "GET /socket.io/?EIO=3&transport=polling&t=1703228387325-11&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:50] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&process=20805%3Acom.tectree.eto&=1703228375964 HTTP/1.1" 200 -
    192.168.10.209 - - [22/Dec/2023 14:59:50] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&wifi_switch=true&process=20805%3Acom.tectree.eto&
    =1703228375965 HTTP/1.1" 200 -
    SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
    ['16666666', 'SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0', '48622354656974\t48622430058013\t48622379259576', '48622388065203\t48622463457857\t48622412440618', '48622421479318\t48622496882701\t48622447121243', '48622454888276\t48622530287701\t48622480306920', '48622488305672\t48622563692493\t48622514473170', '48622521724682\t48622597098482\t48622547232493', '48622555124526\t48622630513638\t48622580101972', '48622588549370\t48622663922024\t48622613027024', '48622621954370\t48622697356711\t48622648316138', '48622655359162\t48622730743222\t48622680837076', '48622688765151\t48622764157701\t48622714816711', '48622722180307\t48622797566972\t48622749396399', '48622755588693\t48622830989211\t48622783475357', '48622789023380\t48622864396399\t48622814834472', '48622822409891\t48622897800670\t48622847861555', '48622855824370\t48622931215201\t48622880629003', '48622889233641\t48622964634992\t48622915392753', '48622922655880\t48622998041399\t48622948466242', '48622956063068\t48623031451815\t48622981711607', '48622989467339\t48623064860513\t48623014873274', '48623022881870\t48623098280253\t48623049975826', '48623056301661\t48623131689419\t48623087385513', '48623089708068\t48623165105044\t48623115564055', '48623123118484\t48623198502128\t48623148577024', '48623156527182\t48623231912232\t48623181795201', '48623189946922\t48623265339784\t48623214470774', '48623223356088\t48623298733117\t48623248152805', '48623256771713\t48623332146399\t48623282411190', '48623290168797\t48623365555982\t48623318696399', '48623323578901\t48623398971659\t48623357642909', '48623357006453\t48623432395565\t48623384054107', '48623390399786\t48623465793794\t48623415150513', '48623423813068\t48623499206503\t48623450567544', '48623457222651\t48623532617440\t48623483119628', '48623490638328\t48623566026190\t48623517191815', '48623524062234\t48623599445669\t48623550167284', '48623557460463\t48623632844263\t48623584288690', '48623590873172\t48623666274523\t48623615733169', '48623624284109\t48623699680513\t48623650618430', '48623657692859\t48623733082180\t48623684318950', '48623691112338\t48623766501138\t48623716787023', '48623724510932\t48623799909367\t48623750638586', '48623757941192\t48623833314471\t48623782793794', '48623791347182\t48623866736398\t48623818722544', '48623824748849\t48623900156919\t48623851192805', '48623858167807\t48623933556398\t48623883072700', '48623891576036\t48623966966763\t48623924598013', '48623924981140\t48624000372075\t48623953195461', '48623958403067\t48624033798430\t48623984458273', '48623991823588\t48624067193846\t48624017203325', '48624025223067\t48624100613377\t48624050862648', '48624058633432\t48624134014159\t48624086784211', '48624092038744\t48624167435565\t48624118477596', '48624125465099\t48624200842075\t48624150802179', '48624158860515\t48624234248221\t48624185895148', '48624192280046\t48624267673117\t48624218693221', '48624225680828\t48624301087596\t48624252354107', '48624259102234\t48624334484731\t48624285094419', '48624292508744\t48624367905304\t48624318908742', '48624325914890\t48624401311138\t48624352270877', '48624359339786\t48624434728221\t48624384392336', '48624392754265\t48624468132909\t48624419484940', '48624426151400\t48624501540981\t48624458753586', '48624459571973\t48624534957023\t48624485802596', '48624492977807\t48624568367492\t48624519868794', '48624526394890\t48624601769002\t48624552887700', '48624559799578\t48624635183638\t48624585535721', '48624593207650\t48624668596919\t48624630895825', '48624626623692\t48624702010929\t48624659432648', '48624660034161\t48624735415304\t48624691495981', '48624693435671\t48624768828898\t48624726906138', '48624726850307\t48624802241138\t48624752846606', '48624760263588\t48624835651033\t48624785161919', '48624793677598\t48624869076346\t48624824420460', '48624827081973\t48624902480565\t48624854809575', '48624860495567\t48624935887231\t48624886202700', '48624893907807\t48624969297492\t48624918969523', '48624927317702\t48625002703221\t48624952761033', '48624960743015\t48625036119887\t48624987511867', '48624994147234\t48625069546606\t48625021070460', '48625027553900\t48625102947440\t48625053855669', '48625060964161\t48625136347492\t48625086639627', '48625094369890\t48625169765252\t48625120196033', '48625127786556\t48625203167856\t48625154700825', '48625161213275\t48625236579054\t48625188932544', '48625194614109\t48625270000148\t48625220285460', '48625228014161\t48625303410669\t48625255165929', '48625261431921\t48625336824314\t48625288626710', '48625294834525\t48625370241137\t48625320652544', '48625328245723\t48625403643064\t48625354244419', '48625361666817\t48625437051346\t48625387389054', '48625395077338\t48625470466502\t48625423967908', '48625428490983\t48625503876814\t48625455288169', '48625461907806\t48625537288273\t48625487474939', '48625495309733\t48625570702439\t48625523346241', '48625528718015\t48625604105773\t48625555453585', '48625562133171\t48625637518116\t48625587594054', '48625595543483\t48625670935148\t48625620082387', '48625628954942\t48625704342023\t48625654505356', '48625662369108\t48625737751137\t48625688793637', '48625695772442\t48625771168273\t48625725793221', '48625729184785\t48625804580825\t48625759087023', '48625762601817\t48625837987335\t48625790206398', '48625796008692\t48625871402491\t48625823588377', '48625829417806\t48625904809939\t48625855586658', '48625862834942\t48625938220512\t48625888474939', '48625896247494\t48625971635095\t48625920739418', '48625929654004\t48626005052595\t48625955510668', '48625963069160\t48626038460304\t48625987535460', '48625996476608\t48626071880095\t48626021913741', '48626029887181\t48626105280668\t48626054541866', '48626063301764\t48626138682960\t48626093515772', '48626096719264\t48626172104470\t48626121995460', '48626130126973\t48626205509939\t48626155909106', '48626163546764\t48626238926762\t48626188115616', '48626196947337\t48626272342179\t48626228677908', '48626230349629\t48626305748481\t48626257888116', '48626263771139\t48626339149679\t48626291042699', '48626297176608\t48626372563741\t48626323204314', '48626330593431\t48626405989054\t48626363864939', '48626364008848\t48626439384679\t48626399067699', '48626397415150\t48626472802908\t48626427323220', '48626430816348\t48626506211189\t48626459219679', '48626464230410\t48626539631293\t48626490820720', '48626497655723\t48626573035460\t48626522698324', '48626531051348\t48626606452387\t48626555645304', '48626564469577\t48626639850981\t48626589933533', '48626597877858\t48626673286501\t48626623817074', '48626631297962\t48626706684626\t48626658815772', '48626664702129\t48626740256553\t48626690686866', '48626698119056\t48626773508272\t48626723952699', '48626731517650\t48626806922595\t48626757734574', '48626781619837\t48626840329835\t48626790548637', '48626798351295\t48626873762543\t48626824376606', '48626831923222\t48626907162543\t48626861337439', '48626865174941\t48626940564262\t48626893347022', '48626898589264\t48626973974939\t48626926964939', '48626931996504\t48627007383949\t48626958351866', '48626965429212\t48627040790772\t48626992044158', '48626998829212\t48627074197126\t48627023970199', '48627032230931\t48627107620043\t48627058808689', '48627065641608\t48627141030355\t48627091434783', '48627099050618\t48627174433532\t48627125699939', '48627132457441\t48627207857855\t48627158096189', '48627165863795\t48627241262907\t48627190517751', '48627199286712\t48627274666918\t48627223929157', '48627232697024\t48627308089262\t48627258138116', '48627266100201\t48627341504626\t48627290942387', '48627299524524\t48627374920251\t48627324166762']
    192.168.10.209 - - [22/Dec/2023 14:59:51] "GET /apm/battery?platform=Android&device=8bc4c003(M2007J3SC)&_=1703228375967 HTTP/1.1" 200 -
    ['SurfaceView', '-', 'com.tectree.eto/com.epicgames.unreal.GameActivity#0']
    [E 231222 14:59:51 android_fps:294] an exception hanpend in fps _collector_thread , reason unkown!
    [D 231222 14:59:51 android_fps:296] Traceback (most recent call last):
    File "C:\SoloX\solox\public\android_fps.py", line 269, in _collector_thread
    refresh_period, new_timestamps = self._get_surfaceflinger_frame_data()
    File "C:\SoloX\solox\public\android_fps.py", line 442, in _get_surfaceflinger_frame_data
    timestamp = [int(fields[0]), int(fields[1]), int(fields[2])]
    ValueError: invalid literal for int() with base 10: 'SurfaceView'

192.168.10.209 - - [22/Dec/2023 14:59:51] "GET /apm/fps?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&surv=true&=1703228375966 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:51] "GET /socket.io/?EIO=3&transport=polling&t=1703228390346-12&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:51] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&process=20805%3Acom.tectree.eto&
=1703228375968 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:52] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&wifi_switch=true&process=20805%3Acom.tectree.eto&=1703228375969 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:53] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&process=20805%3Acom.tectree.eto&
=1703228375972 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:53] "GET /apm/cpu?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&process=20805%3Acom.tectree.eto&=1703228375963 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:53] "GET /apm/battery?platform=Android&device=8bc4c003(M2007J3SC)&
=1703228375970 HTTP/1.1" 200 -
SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
['16666666', 'SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0', '48625127786556\t48625203167856\t48625154700825', '48625161213275\t48625236579054\t48625188932544', '48625194614109\t48625270000148\t48625220285460', '48625228014161\t48625303410669\t48625255165929', '48625261431921\t48625336824314\t48625288626710', '48625294834525\t48625370241137\t48625320652544', '48625328245723\t48625403643064\t48625354244419', '48625361666817\t48625437051346\t48625387389054', '48625395077338\t48625470466502\t48625423967908', '48625428490983\t48625503876814\t48625455288169', '48625461907806\t48625537288273\t48625487474939', '48625495309733\t48625570702439\t48625523346241', '48625528718015\t48625604105773\t48625555453585', '48625562133171\t48625637518116\t48625587594054', '48625595543483\t48625670935148\t48625620082387', '48625628954942\t48625704342023\t48625654505356', '48625662369108\t48625737751137\t48625688793637', '48625695772442\t48625771168273\t48625725793221', '48625729184785\t48625804580825\t48625759087023', '48625762601817\t48625837987335\t48625790206398', '48625796008692\t48625871402491\t48625823588377', '48625829417806\t48625904809939\t48625855586658', '48625862834942\t48625938220512\t48625888474939', '48625896247494\t48625971635095\t48625920739418', '48625929654004\t48626005052595\t48625955510668', '48625963069160\t48626038460304\t48625987535460', '48625996476608\t48626071880095\t48626021913741', '48626029887181\t48626105280668\t48626054541866', '48626063301764\t48626138682960\t48626093515772', '48626096719264\t48626172104470\t48626121995460', '48626130126973\t48626205509939\t48626155909106', '48626163546764\t48626238926762\t48626188115616', '48626196947337\t48626272342179\t48626228677908', '48626230349629\t48626305748481\t48626257888116', '48626263771139\t48626339149679\t48626291042699', '48626297176608\t48626372563741\t48626323204314', '48626330593431\t48626405989054\t48626363864939', '48626364008848\t48626439384679\t48626399067699', '48626397415150\t48626472802908\t48626427323220', '48626430816348\t48626506211189\t48626459219679', '48626464230410\t48626539631293\t48626490820720', '48626497655723\t48626573035460\t48626522698324', '48626531051348\t48626606452387\t48626555645304', '48626564469577\t48626639850981\t48626589933533', '48626597877858\t48626673286501\t48626623817074', '48626631297962\t48626706684626\t48626658815772', '48626664702129\t48626740256553\t48626690686866', '48626698119056\t48626773508272\t48626723952699', '48626731517650\t48626806922595\t48626757734574', '48626781619837\t48626840329835\t48626790548637', '48626798351295\t48626873762543\t48626824376606', '48626831923222\t48626907162543\t48626861337439', '48626865174941\t48626940564262\t48626893347022', '48626898589264\t48626973974939\t48626926964939', '48626931996504\t48627007383949\t48626958351866', '48626965429212\t48627040790772\t48626992044158', '48626998829212\t48627074197126\t48627023970199', '48627032230931\t48627107620043\t48627058808689', '48627065641608\t48627141030355\t48627091434783', '48627099050618\t48627174433532\t48627125699939', '48627132457441\t48627207857855\t48627158096189', '48627165863795\t48627241262907\t48627190517751', '48627199286712\t48627274666918\t48627223929157', '48627232697024\t48627308089262\t48627258138116', '48627266100201\t48627341504626\t48627290942387', '48627299524524\t48627374920251\t48627324166762', '48627332929576\t48627408319522\t48627360177699', '48627366333587\t48627441728428\t48627391830876', '48627399755931\t48627475135616\t48627437548168', '48627433171295\t48627508550668\t48627465247751', '48627466586920\t48627541957803\t48627497765876', '48627499986191\t48627575374678\t48627529381397', '48627533395097\t48627608783897\t48627564386709', '48627566802285\t48627642200095\t48627600658741', '48627600217337\t48627675604418\t48627627798532', '48627633624472\t48627709024366\t48627659370668', '48627667041347\t48627742422907\t48627693073480', '48627700450566\t48627775835720\t48627726452699', '48627733866764\t48627809259053\t48627759818793', '48627767271087\t48627842654001\t48627794263793', '48627800691035\t48627876089418\t48627826153949', '48627834089576\t48627909484470\t48627860571293', '48627867502389\t48627942913949\t48627894964782', '48627900925722\t48627976317855\t48627926600616', '48627934320670\t48628009717178\t48627960432178', '48627967756087\t48628043130720\t48627996116084', '48628001151139\t48628076536345\t48628027395772', '48628051247285\t48628109954365\t48628061249365', '48628067984524\t48628143360355\t48628093436084', '48628101383847\t48628176770095\t48628133248845', '48628134797389\t48628210201084\t48628160829001', '48628168203014\t48628243590615\t48628193800199', '48628201621034\t48628277005042\t48628227927074', '48628235027024\t48628310431345\t48628263441657', '48628268436764\t48628343835824\t48628297043480', '48628301867753\t48628377238376\t48628328835303', '48628335257284\t48628410658949\t48628361958532', '48628368671711\t48628444060772\t48628394250459', '48628402098014\t48628477480355\t48628427311605', '48628435502493\t48628510898272\t48628462549157', '48628468905045\t48628544307594\t48628497848428', '48628502325618\t48628577717699\t48628529842126', '48628535727441\t48628611124001\t48628561007907', '48628569147024\t48628644533949\t48628593610355', '48628602564941\t48628677941917\t48628636148636', '48628635974263\t48628711351813\t48628662577126', '48628669384368\t48628744767907\t48628699477855', '48628702790670\t48628778173792\t48628731004626', '48628736200618\t48628811586136\t48628763269834', '48628769608586\t48628845010824\t48628795429261', '48628803018482\t48628878406761\t48628829199365', '48628836434576\t48628911821188\t48628862612073', '48628869840461\t48628945232230\t48628899818740', '48628903252805\t48628978653063\t48628929648219', '48628936677493\t48629012064053\t48628962439001', '48628970073430\t48629045498584\t48628995585355', '48629003487857\t48629078883271\t48629028112959', '48629036898899\t48629112295823\t48629063795928', '48629070319732\t48629145779782\t48629096232178', '48629103730722\t48629179113375\t48629129724105', '48629137165253\t48629212527490\t48629162093271', '48629170549940\t48629245941813\t48629194937594', '48629203962492\t48629279372594\t48629228727803', '48629237446451\t48629312757230\t48629262747021', '48629270780044\t48629346176240\t48629296805667', '48629304194159\t48629379594573\t48629328925459', '48629337608482\t48629412995511\t48629363382282', '48629371039263\t48629446397646\t48629396296813', '48629404423899\t48629479800198\t48629429061084', '48629437842909\t48629513223375\t48629472505355', '48629471261242\t48629546633636\t48629502480511', '48629504662180\t48629580043532\t48629535222229', '48629538064315\t48629613450667\t48629577214625', '48629571466867\t48629646872334\t48629598116344', '48629604890044\t48629680274365\t48629630992229', '48629638300305\t48629713680667\t48629666876188', '48629671710201\t48629747112802\t48629699566604', '48629705117336\t48629780509052\t48629731061813', '48629738539003\t48629813914156\t48629767590302', '48629771941034\t48629847335927\t48629798871709', '48629805347336\t48629880747386\t48629830524417', '48629838779471\t48629914147229\t48629865393115', '48629872175721\t48629947577386\t48629897774104', '48629905580825\t48629980977229\t48629930145302', '48629939002596\t48630014380042\t48629964102386', '48629972414055\t48630047799677\t48629997780719', '48630005813898\t48630081212125\t48630031273531', '48630039244055\t48630114626969\t48630064714677', '48630072643898\t48630148051136\t48630099571136']
['SurfaceView', '-', 'com.tectree.eto/com.epicgames.unreal.GameActivity#0']
[E 231222 14:59:53 android_fps:294] an exception hanpend in fps _collector_thread , reason unkown!
[D 231222 14:59:53 android_fps:296] Traceback (most recent call last):
File "C:\SoloX\solox\public\android_fps.py", line 269, in _collector_thread
refresh_period, new_timestamps = self._get_surfaceflinger_frame_data()
File "C:\SoloX\solox\public\android_fps.py", line 442, in _get_surfaceflinger_frame_data
timestamp = [int(fields[0]), int(fields[1]), int(fields[2])]
ValueError: invalid literal for int() with base 10: 'SurfaceView'

192.168.10.209 - - [22/Dec/2023 14:59:53] "GET /apm/fps?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&surv=true&=1703228375971 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:54] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&process=20805%3Acom.tectree.eto&
=1703228375974 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:54] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&wifi_switch=true&process=20805%3Acom.tectree.eto&=1703228375973 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:55] "GET /apm/battery?platform=Android&device=8bc4c003(M2007J3SC)&
=1703228375976 HTTP/1.1" 200 -
SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
['16666666', 'SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0', '48626865174941\t48626940564262\t48626893347022', '48626898589264\t48626973974939\t48626926964939', '48626931996504\t48627007383949\t48626958351866', '48626965429212\t48627040790772\t48626992044158', '48626998829212\t48627074197126\t48627023970199', '48627032230931\t48627107620043\t48627058808689', '48627065641608\t48627141030355\t48627091434783', '48627099050618\t48627174433532\t48627125699939', '48627132457441\t48627207857855\t48627158096189', '48627165863795\t48627241262907\t48627190517751', '48627199286712\t48627274666918\t48627223929157', '48627232697024\t48627308089262\t48627258138116', '48627266100201\t48627341504626\t48627290942387', '48627299524524\t48627374920251\t48627324166762', '48627332929576\t48627408319522\t48627360177699', '48627366333587\t48627441728428\t48627391830876', '48627399755931\t48627475135616\t48627437548168', '48627433171295\t48627508550668\t48627465247751', '48627466586920\t48627541957803\t48627497765876', '48627499986191\t48627575374678\t48627529381397', '48627533395097\t48627608783897\t48627564386709', '48627566802285\t48627642200095\t48627600658741', '48627600217337\t48627675604418\t48627627798532', '48627633624472\t48627709024366\t48627659370668', '48627667041347\t48627742422907\t48627693073480', '48627700450566\t48627775835720\t48627726452699', '48627733866764\t48627809259053\t48627759818793', '48627767271087\t48627842654001\t48627794263793', '48627800691035\t48627876089418\t48627826153949', '48627834089576\t48627909484470\t48627860571293', '48627867502389\t48627942913949\t48627894964782', '48627900925722\t48627976317855\t48627926600616', '48627934320670\t48628009717178\t48627960432178', '48627967756087\t48628043130720\t48627996116084', '48628001151139\t48628076536345\t48628027395772', '48628051247285\t48628109954365\t48628061249365', '48628067984524\t48628143360355\t48628093436084', '48628101383847\t48628176770095\t48628133248845', '48628134797389\t48628210201084\t48628160829001', '48628168203014\t48628243590615\t48628193800199', '48628201621034\t48628277005042\t48628227927074', '48628235027024\t48628310431345\t48628263441657', '48628268436764\t48628343835824\t48628297043480', '48628301867753\t48628377238376\t48628328835303', '48628335257284\t48628410658949\t48628361958532', '48628368671711\t48628444060772\t48628394250459', '48628402098014\t48628477480355\t48628427311605', '48628435502493\t48628510898272\t48628462549157', '48628468905045\t48628544307594\t48628497848428', '48628502325618\t48628577717699\t48628529842126', '48628535727441\t48628611124001\t48628561007907', '48628569147024\t48628644533949\t48628593610355', '48628602564941\t48628677941917\t48628636148636', '48628635974263\t48628711351813\t48628662577126', '48628669384368\t48628744767907\t48628699477855', '48628702790670\t48628778173792\t48628731004626', '48628736200618\t48628811586136\t48628763269834', '48628769608586\t48628845010824\t48628795429261', '48628803018482\t48628878406761\t48628829199365', '48628836434576\t48628911821188\t48628862612073', '48628869840461\t48628945232230\t48628899818740', '48628903252805\t48628978653063\t48628929648219', '48628936677493\t48629012064053\t48628962439001', '48628970073430\t48629045498584\t48628995585355', '48629003487857\t48629078883271\t48629028112959', '48629036898899\t48629112295823\t48629063795928', '48629070319732\t48629145779782\t48629096232178', '48629103730722\t48629179113375\t48629129724105', '48629137165253\t48629212527490\t48629162093271', '48629170549940\t48629245941813\t48629194937594', '48629203962492\t48629279372594\t48629228727803', '48629237446451\t48629312757230\t48629262747021', '48629270780044\t48629346176240\t48629296805667', '48629304194159\t48629379594573\t48629328925459', '48629337608482\t48629412995511\t48629363382282', '48629371039263\t48629446397646\t48629396296813', '48629404423899\t48629479800198\t48629429061084', '48629437842909\t48629513223375\t48629472505355', '48629471261242\t48629546633636\t48629502480511', '48629504662180\t48629580043532\t48629535222229', '48629538064315\t48629613450667\t48629577214625', '48629571466867\t48629646872334\t48629598116344', '48629604890044\t48629680274365\t48629630992229', '48629638300305\t48629713680667\t48629666876188', '48629671710201\t48629747112802\t48629699566604', '48629705117336\t48629780509052\t48629731061813', '48629738539003\t48629813914156\t48629767590302', '48629771941034\t48629847335927\t48629798871709', '48629805347336\t48629880747386\t48629830524417', '48629838779471\t48629914147229\t48629865393115', '48629872175721\t48629947577386\t48629897774104', '48629905580825\t48629980977229\t48629930145302', '48629939002596\t48630014380042\t48629964102386', '48629972414055\t48630047799677\t48629997780719', '48630005813898\t48630081212125\t48630031273531', '48630039244055\t48630114626969\t48630064714677', '48630072643898\t48630148051136\t48630099571136', '48630106046711\t48630181444104\t48630134534625', '48630139466346\t48630214856083\t48630165453010', '48630172878794\t48630248277854\t48630197621969', '48630206293638\t48630281676708\t48630231298010', '48630239717805\t48630315080406\t48630278719000', '48630273110773\t48630348508219\t48630299869052', '48630306522752\t48630381911292\t48630332227021', '48630339944523\t48630415316344\t48630367897542', '48630373343377\t48630448736240\t48630399404521', '48630406747075\t48630482143531\t48630431624365', '48630440174888\t48630515556031\t48630465733635', '48630473577961\t48630548975771\t48630499364990', '48630506983013\t48630582371969\t48630532548844', '48630540402909\t48630615787594\t48630566331031', '48630573810200\t48630649201239\t48630601978687', '48630607222700\t48630682608792\t48630633359885', '48630640642440\t48630716031448\t48630667523687', '48630674038638\t48630749438062\t48630699624000', '48630707454263\t48630782852333\t48630734858948', '48630740867908\t48630816282281\t48630767214260', '48630774275461\t48630853299937\t48630801060198', '48630824364784\t48630883079208\t48630832783739', '48630841104731\t48630916497906\t48630867856812', '48630874519002\t48630949917385\t48630901735041', '48630907948950\t48630983311708\t48630933068531', '48630944966606\t48631016721344\t48630968765666', '48630974745877\t48631050138791\t48631000170562', '48631008164575\t48631083548739\t48631033094156', '48631041584054\t48631116956396\t48631069140666', '48631074978377\t48631150376864\t48631100550146', '48631108388013\t48631183799937\t48631133314885', '48631141805460\t48631217187489\t48631166553843', '48631175215408\t48631250603427\t48631201764781', '48631208623065\t48631284011135\t48631233512281', '48631242043533\t48631317423062\t48631268487698', '48631275466606\t48631350850198\t48631300552229', '48631308854158\t48631384254104\t48631334040823', '48631342270096\t48631417657385\t48631373363843', '48631375677804\t48631451073635\t48631401097489', '48631409089731\t48631484491708\t48631433449260', '48631442516867\t48631517890770\t48631468200718', '48631475920773\t48631551308635\t48631503180041', '48631509324054\t48631584712020\t48631535486760', '48631542740304\t48631618123322\t48631568692593', '48631576158377\t48631651534833\t48631607282437', '48631609557439\t48631684949729\t48631641621916', '48631642975304\t48631718357177\t48631670437645', '48631676378689\t48631751769885\t48631703034677', '48631709789991\t48631785182541\t48631735419052', '48631743201502\t48631818587281\t48631768159052', '48631776616398\t48631852012072\t48631802265458', '48631810023846\t48631885477333\t48631835377749']
['SurfaceView', '-', 'com.tectree.eto/com.epicgames.unreal.GameActivity#0']
[E 231222 14:59:55 android_fps:294] an exception hanpend in fps _collector_thread , reason unkown!
[D 231222 14:59:55 android_fps:296] Traceback (most recent call last):
File "C:\SoloX\solox\public\android_fps.py", line 269, in _collector_thread
refresh_period, new_timestamps = self._get_surfaceflinger_frame_data()
File "C:\SoloX\solox\public\android_fps.py", line 442, in _get_surfaceflinger_frame_data
timestamp = [int(fields[0]), int(fields[1]), int(fields[2])]
ValueError: invalid literal for int() with base 10: 'SurfaceView'

192.168.10.209 - - [22/Dec/2023 14:59:55] "GET /apm/fps?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&surv=true&=1703228375977 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:55] "GET /socket.io/?EIO=3&transport=polling&t=1703228391355-13&sid=fddc1bc2399241c498a15f4a7954c25d HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:55] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&process=20805%3Acom.tectree.eto&
=1703228375978 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:55] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=8bc4c003(M2007J3SC)&wifi_switch=true&process=20805%3Acom.tectree.eto&=1703228375979 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 14:59:56] "GET /apm/battery?platform=Android&device=8bc4c003(M2007J3SC)&
=1703228375980 HTTP/1.1" 200 -
SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0
['16666666', 'SurfaceView - com.tectree.eto/com.epicgames.unreal.GameActivity#0', '48628134797389\t48628210201084\t48628160829001', '48628168203014\t48628243590615\t48628193800199', '48628201621034\t48628277005042\t48628227927074', '48628235027024\t48628310431345\t48628263441657', '48628268436764\t48628343835824\t48628297043480', '48628301867753\t48628377238376\t48628328835303', '48628335257284\t48628410658949\t48628361958532', '48628368671711\t48628444060772\t48628394250459', '48628402098014\t48628477480355\t48628427311605', '48628435502493\t48628510898272\t48628462549157', '48628468905045\t48628544307594\t48628497848428', '48628502325618\t48628577717699\t48628529842126', '48628535727441\t48628611124001\t48628561007907', '48628569147024\t48628644533949\t48628593610355', '48628602564941\t48628677941917\t48628636148636', '48628635974263\t48628711351813\t48628662577126', '48628669384368\t48628744767907\t48628699477855', '48628702790670\t48628778173792\t48628731004626', '48628736200618\t48628811586136\t48628763269834', '48628769608586\t48628845010824\t48628795429261', '48628803018482\t48628878406761\t48628829199365', '48628836434576\t48628911821188\t48628862612073', '48628869840461\t48628945232230\t48628899818740', '48628903252805\t48628978653063\t48628929648219', '48628936677493\t48629012064053\t48628962439001', '48628970073430\t48629045498584\t48628995585355', '48629003487857\t48629078883271\t48629028112959', '48629036898899\t48629112295823\t48629063795928', '48629070319732\t48629145779782\t48629096232178', '48629103730722\t48629179113375\t48629129724105', '48629137165253\t48629212527490\t48629162093271', '48629170549940\t48629245941813\t48629194937594', '48629203962492\t48629279372594\t48629228727803', '48629237446451\t48629312757230\t48629262747021', '48629270780044\t48629346176240\t48629296805667', '48629304194159\t48629379594573\t48629328925459', '48629337608482\t48629412995511\t48629363382282', '48629371039263\t48629446397646\t48629396296813', '48629404423899\t48629479800198\t48629429061084', '48629437842909\t48629513223375\t48629472505355', '48629471261242\t48629546633636\t48629502480511', '48629504662180\t48629580043532\t48629535222229', '48629538064315\t48629613450667\t48629577214625', '48629571466867\t48629646872334\t48629598116344', '48629604890044\t48629680274365\t48629630992229', '48629638300305\t48629713680667\t48629666876188', '48629671710201\t48629747112802\t48629699566604', '48629705117336\t48629780509052\t48629731061813', '48629738539003\t48629813914156\t48629767590302', '48629771941034\t48629847335927\t48629798871709', '48629805347336\t48629880747386\t48629830524417', '48629838779471\t48629914147229\t48629865393115', '48629872175721\t48629947577386\t48629897774104', '48629905580825\t48629980977229\t48629930145302', '48629939002596\t48630014380042\t48629964102386', '48629972414055\t48630047799677\t48629997780719', '48630005813898\t48630081212125\t48630031273531', '48630039244055\t48630114626969\t48630064714677', '48630072643898\t48630148051136\t48630099571136', '48630106046711\t48630181444104\t48630134534625', '48630139466346\t48630214856083\t48630165453010', '48630172878794\t48630248277854\t48630197621969', '48630206293638\t48630281676708\t48630231298010', '48630239717805\t48630315080406\t48630278719000', '48630273110773\t48630348508219\t48630299869052', '48630306522752\t48630381911292\t48630332227021', '48630339944523\t48630415316344\t48630367897542', '48630373343377\t48630448736240\t48630399404521', '48630406747075\t48630482143531\t48630431624365', '48630440174888\t48630515556031\t48630465733635', '48630473577961\t48630548975771\t48630499364990', '48630506983013\t48630582371969\t48630532548844', '48630540402909\t48630615787594\t48630566331031', '48630573810200\t48630649201239\t48630601978687', '48630607222700\t48630682608792\t48630633359885', '48630640642440\t48630716031448\t48630667523687', '48630674038638\t48630749438062\t48630699624000', '48630707454263\t48630782852333\t48630734858948', '48630740867908\t48630816282281\t48630767214260', '48630774275461\t48630853299937\t48630801060198', '48630824364784\t48630883079208\t48630832783739', '48630841104731\t48630916497906\t48630867856812', '48630874519002\t48630949917385\t48630901735041', '48630907948950\t48630983311708\t48630933068531', '48630944966606\t48631016721344\t48630968765666', '48630974745877\t48631050138791\t48631000170562', '48631008164575\t48631083548739\t48631033094156', '48631041584054\t48631116956396\t48631069140666', '48631074978377\t48631150376864\t48631100550146', '48631108388013\t48631183799937\t48631133314885', '48631141805460\t48631217187489\t48631166553843', '48631175215408\t48631250603427\t48631201764781', '48631208623065\t48631284011135\t48631233512281', '48631242043533\t48631317423062\t48631268487698', '48631275466606\t48631350850198\t48631300552229', '48631308854158\t48631384254104\t48631334040823', '48631342270096\t48631417657385\t48631373363843', '48631375677804\t48631451073635\t48631401097489', '48631409089731\t48631484491708\t48631433449260', '48631442516867\t48631517890770\t48631468200718', '48631475920773\t48631551308635\t48631503180041', '48631509324054\t48631584712020\t48631535486760', '48631542740304\t48631618123322\t48631568692593', '48631576158377\t48631651534833\t48631607282437', '48631609557439\t48631684949729\t48631641621916', '48631642975304\t48631718357177\t48631670437645', '48631676378689\t48631751769885\t48631703034677', '48631709789991\t48631785182541\t48631735419052', '48631743201502\t48631818587281\t48631768159052', '48631776616398\t48631852012072\t48631802265458', '48631810023846\t48631885477333\t48631835377749', '48631843436554\t48631918841916\t48631871923947', '48631876849210\t48631952257020\t48631904998739', '48631910253950\t48631985663791\t48631942783114', '48631943678741\t48632019066447\t48631973826187', '48631993810669\t48632052498999\t48632005884624', '48632010508585\t48632085908531\t48632040324260', '48632043923689\t48632119297124\t48632071861604', '48632077330460\t48632152717906\t48632103354572', '48632110733116\t48632186116499\t48632137382801', '48632144165668\t48632219537593\t48632170863739', '48632177575200\t48632252964989\t48632202626083', '48632210963793\t48632286355614\t48632236129260', '48632244384575\t48632319773270\t48632272271135', '48632277783168\t48632353176187\t48632304620458', '48632311204262\t48632386598114\t48632336758322', '48632344631658\t48632419999103\t48632370070353', '48632378022283\t48632453400510\t48632403888270', '48632411439939\t48632486816291\t48632438380405', '48632444842856\t48632520234833\t48632470648218', '48632478264783\t48632553636291\t48632504654155', '48632511665772\t48632587056343\t48632536260145', '48632545067179\t48632620465978\t48632570626187', '48632578482960\t48632653880405\t48632607140249', '48632611901502\t48632687284780\t48632638136499', '48632645302960\t48632720708843\t48632674162489', '48632678723012\t48632754111655\t48632704975093', '48632712132647\t48632787520562\t48632737644885', '48632745547074\t48632820932541\t48632772537853', '48632778951449\t48632854335509\t48632805075041', '48632812375512\t48632887750197\t48632845343895', '48632845778324\t48632921158478\t48632873933687', '48632879187231\t48632954573582\t48632905222437', '48632912599210\t48632987984207\t48632945563478', '48632946002178\t48633021393322\t48632977070874', '48632979416866\t48633054799468\t48633016754728', '48633012825147\t48633088219259\t48633043142957', '48633046240251\t48633121629207\t48633077792957', '48633079650876\t48633155056916\t48633105843947']
['SurfaceView', '-', 'com.tectree.eto/com.epicgames.unreal.GameActivity#0']
[E 231222 14:59:56 android_fps:294] an exception hanpend in fps _collector_thread , reason unkown!
[D 231222 14:59:56 android_fps:296] Traceback (most recent call last):
File "C:\SoloX\solox\public\android_fps.py", line 269, in _collector_thread
refresh_period, new_timestamps = self._get_surfaceflinger_frame_data()
File "C:\SoloX\solox\public\android_fps.py", line 442, in _get_surfaceflinger_frame_data
timestamp = [int(fields[0]), int(fields[1]), int(fields[2])]
ValueError: invalid literal for int() with base 10: 'SurfaceView'

@rafa0128
Copy link
Member

改了,git pull,继续

@smart-test-ti smart-test-ti deleted a comment from JIUJIUs Dec 22, 2023
@rafa0128
Copy link
Member

测试界面分别执行:
adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#0
adb shell dumpsys SurfaceFlinger --latency SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#0

多执行几次看看有没有非0的数据,如果没有就解决不了了,这个手机系统机制不一样,我要靠手机写数据到这里才能计算

@rafa0128
Copy link
Member

rafa0128 commented Dec 22, 2023

git pull继续

重新拉一下,我看了memory也报错了,顺便一起定位

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

来咯~

image

192.168.10.209 - - [22/Dec/2023 15:49:06] "GET /apm/battery?platform=Android&device=d330c5b9(Redmi%20K30)&=1703231331491 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 15:49:06] "GET /apm/fps?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&surv=true&
=1703231331490 HTTP/1.1" 200 -
[E 231222 15:49:06 apm:159] 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "C:\SoloX\solox\public\apm.py", line 152, in getAndroidMemory
totalPass = round(float(float(m_total.group(1))) / 1024, 2)
AttributeError: 'NoneType' object has no attribute 'group'
192.168.10.209 - - [22/Dec/2023 15:49:06] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&process=23800%3Acom.tectree.eto&_=1703231331488 HTTP/1.1" 200 -
[I 231222 15:49:06 apm:149] memory info: Applications Memory Usage (in Kilobytes):
Uptime: 45764185 Realtime: 775183459

** MEMINFO in pid 23800 [com.tectree.eto] **
                   Pss  Private  Private  SwapPss      Rss     Heap     Heap     Heap
                 Total    Dirty    Clean    Dirty    Total     Size    Alloc     Free
                ------   ------   ------   ------   ------   ------   ------   ------
  Native Heap    28150    27824        4       55    29740    43976    38279     5696
  Dalvik Heap     6794     2220     4392       17     8824    11780     2945     8835
 Dalvik Other     3204     1860       28        0     5160
        Stack     2282     2224        0        0     2356
       Ashmem       17        0        0        0      908
      Gfx dev    95432    95432        0        0    95432
    Other dev      257      168       16        0      768
     .so mmap   121483      440   107688        0   162956
    .jar mmap     3093        0      764        0    28156
    .apk mmap       59        0        0        0      572
    .ttf mmap       39        0        4        0      128
    .dex mmap     3998       64     3772        0     4720
    .oat mmap       27        0        0        0     2592
    .art mmap     6366     3636      860       15    18308
   Other mmap       54        8        0        0      696
   EGL mtrack    38648    38648        0        0    38648
    GL mtrack      960      960        0        0      960
      Unknown   511539   511468        4        0   511900
        TOTAL   822489   684952   117532       87   912824    55756    41224    14531

 App Summary
                       Pss(KB)                        Rss(KB)
                        ------                         ------
           Java Heap:     6716                          27132
         Native Heap:    27824                          29740
                Code:   112744                         201116
               Stack:     2224                           2356
            Graphics:   135040                         135040
       Private Other:   517936
              System:    20005
             Unknown:                                  517440

           TOTAL PSS:   822489            TOTAL RSS:   912824       TOTAL SWAP PSS:       87

 Objects
               Views:       16         ViewRootImpl:        1
         AppContexts:        6           Activities:        1
              Assets:       31        AssetManagers:        0
       Local Binders:       31        Proxy Binders:       46
       Parcel memory:       11         Parcel count:       46
    Death Recipients:        4      OpenSSL Sockets:        1
            WebViews:        0

 SQL
         MEMORY_USED:      207
  PAGECACHE_OVERFLOW:       78          MALLOC_SIZE:       46

 DATABASES
      pgsz     dbsz   Lookaside(b)          cache  Dbname
         4       24            111     148/341/11  /data/user/0/com.tectree.eto/databases/thinkingdata
         4       52            117      13/342/12  /data/user/0/com.tectree.eto/databases/crashSight_db_

192.168.10.209 - - [22/Dec/2023 15:49:07] "GET /apm/battery?platform=Android&device=d330c5b9(Redmi%20K30)&=1703231331493 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 15:49:08] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&wifi_switch=true&process=23800%3Acom.tectree.eto&
=1703231331492 HTTP/1.1" 200 -
SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#0
['16666666', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
[E 231222 15:49:08 apm:159] 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "C:\SoloX\solox\public\apm.py", line 152, in getAndroidMemory
totalPass = round(float(float(m_total.group(1))) / 1024, 2)
AttributeError: 'NoneType' object has no attribute 'group'
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
192.168.10.209 - - [22/Dec/2023 15:49:08] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&process=23800%3Acom.tectree.eto&=1703231331495 HTTP/1.1" 200 -
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
192.168.10.209 - - [22/Dec/2023 15:49:08] "GET /apm/cpu?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&process=23800%3Acom.tectree.eto&
=1703231331487 HTTP/1.1" 200 -
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0'

@rafa0128
Copy link
Member

看上去不太对,确定是拉了最新代码吗?

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

我再 pull 一次试下~

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

好了 ,FPS 有了

image

192.168.10.209 - - [22/Dec/2023 16:08:37] "GET /static/logo/logo.png HTTP/1.1" 304 -
192.168.10.209 - - [22/Dec/2023 16:08:37] "GET /solox/version?=1703232516271 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:08:37] "GET /device/ids?platform=Android&
=1703232516270 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:08:48] "GET /package/pids?platform=Android&device=d330c5b9(Redmi%20K30)&pkgname=com.tectree.eto&=1703232516272 HTTP/1.1" 200 -
[I 231222 16:08:51 common:227] Clean up useless files ...
[I 231222 16:08:51 common:863] stop scrcpy process
[I 231222 16:08:51 common:234] Clean up useless files success
192.168.10.209 - - [22/Dec/2023 16:08:51] "POST /apm/initialize HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:08:51] "GET /apm/set/network?platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&wifi_switch=true&type=pre&process=3941%3Acom.tectree.eto&
=1703232516273 HTTP/1.1" 200 -
[I 231222 16:08:52 apm:149] memory info: Applications Memory Usage (in Kilobytes):
Uptime: 46949504 Realtime: 776368779

** MEMINFO in pid 3941 [com.tectree.eto] **
                   Pss  Private  Private  SwapPss      Rss     Heap     Heap     Heap
                 Total    Dirty    Clean    Dirty    Total     Size    Alloc     Free
                ------   ------   ------   ------   ------   ------   ------   ------
  Native Heap    21097    20712        8       54    22740    38304    33827     4476
  Dalvik Heap     3843     3688       12       65     5640    11944     2986     8958
 Dalvik Other     2450     1936        0        0     3600
        Stack     2100     2012        0        0     2204
       Ashmem       20        0        0        0      904
      Gfx dev    45368    45368        0        0    45368
    Other dev      264      172       16        0      780
     .so mmap   253809      432   235176        0   300660
    .jar mmap     6553        0     2760        0    37768
    .apk mmap     1050        0      288        0     3656
    .ttf mmap     3316        0     3168        0     3672
    .dex mmap     6811       64     6416        0     7968
    .oat mmap       67        0        0        0     2792
    .art mmap     5404     3460      128       24    17304
   Other mmap      133        8        0        0     1160
   EGL mtrack    28372    28372        0        0    28372
    GL mtrack      960      960        0        0      960
      Unknown   198231   198160        4        0   198596
        TOTAL   579991   305344   247976      143   684144    50248    36813    13434

 App Summary
                       Pss(KB)                        Rss(KB)
                        ------                         ------
           Java Heap:     7276                          22944
         Native Heap:    20712                          22740
                Code:   248316                         356860
               Stack:     2012                           2204
            Graphics:    74700                          74700
       Private Other:   200304
              System:    26671
             Unknown:                                  204696

           TOTAL PSS:   579991            TOTAL RSS:   684144       TOTAL SWAP PSS:      143

 Objects
               Views:       16         ViewRootImpl:        1
         AppContexts:        6           Activities:        1
              Assets:       31        AssetManagers:        0
       Local Binders:       25        Proxy Binders:       44
       Parcel memory:       13         Parcel count:       49
    Death Recipients:        4      OpenSSL Sockets:        2
            WebViews:        0

 SQL
         MEMORY_USED:      209
  PAGECACHE_OVERFLOW:       78          MALLOC_SIZE:       46

 DATABASES
      pgsz     dbsz   Lookaside(b)          cache  Dbname
         4       24             84         8/22/7  /data/user/0/com.tectree.eto/databases/thinkingdata
         4       52            120       14/28/13  /data/user/0/com.tectree.eto/databases/crashSight_db_

192.168.10.209 - - [22/Dec/2023 16:08:53] "GET /apm/battery?platform=Android&device=d330c5b9(Redmi%20K30)&=1703232516278 HTTP/1.1" 200 -
com.tectree.eto/com.epicgames.unreal.GameActivity#0
['33333333', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '46932090514122\t46932108578914\t46932089157612', '46932090514122\t46932150325476\t46932089157612', '46932090514122\t46932225082664\t46932089157612', '46932090514122\t46932550061101\t46932089157612', '46932090514122\t46932566717768\t46932089157612']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
[E 231222 16:08:53 apm:159] 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "C:\SoloX\solox\public\apm.py", line 152, in getAndroidMemory
totalPass = round(float(float(m_total.group(1))) / 1024, 2)
AttributeError: 'NoneType' object has no attribute 'group'
['0', '0', '0']
192.168.10.209 - - [22/Dec/2023 16:08:53] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&wifi_switch=true&process=3941%3Acom.tectree.eto&
=1703232516276 HTTP/1.1" 200 -
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
192.168.10.209 - - [22/Dec/2023 16:08:53] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&process=3941%3Acom.tectree.eto&=1703232516275 HTTP/1.1" 200 -
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['46932090514122', '46932108578914', '46932089157612']
['46932090514122', '46932150325476', '46932089157612']
['46932090514122', '46932225082664', '46932089157612']
['46932090514122', '46932550061101', '46932089157612']
['46932090514122', '46932566717768', '46932089157612']
192.168.10.209 - - [22/Dec/2023 16:08:53] "GET /apm/fps?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&surv=true&
=1703232516277 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:08:53] "GET /apm/battery?platform=Android&device=d330c5b9(Redmi%20K30)&=1703232516279 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:08:53] "GET /apm/cpu?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&process=3941%3Acom.tectree.eto&
=1703232516274 HTTP/1.1" 200 -
[I 231222 16:08:54 apm:149] memory info: Applications Memory Usage (in Kilobytes):
Uptime: 46951748 Realtime: 776371023

** MEMINFO in pid 3941 [com.tectree.eto] **
                   Pss  Private  Private  SwapPss      Rss     Heap     Heap     Heap
                 Total    Dirty    Clean    Dirty    Total     Size    Alloc     Free
                ------   ------   ------   ------   ------   ------   ------   ------
  Native Heap    21575    21192        8       54    23216    39044    34204     4839
  Dalvik Heap     6937     2208     4552       18     8792    11883     2987     8896
 Dalvik Other     2354     1804       28        0     3512
        Stack     2044     1956        0        0     2148
       Ashmem       20        0        0        0      904
      Gfx dev    45472    45472        0        0    45472
    Other dev      264      172       16        0      780
     .so mmap   253801      432   235176        0   300660
    .jar mmap     6512        0     2696        0    37768
    .apk mmap     1050        0      288        0     3656
    .ttf mmap     3316        0     3168        0     3672
    .dex mmap     6811       64     6416        0     7968
    .oat mmap       67        0        0        0     2792
    .art mmap     6251     3464      900       15    18264
   Other mmap      122        8        0        0     1160
   EGL mtrack    28372    28372        0        0    28372
    GL mtrack      960      960        0        0      960
      Unknown   244335   244264        4        0   244700
        TOTAL   630350   350368   253252       87   734796    50927    37191    13735

 App Summary
                       Pss(KB)                        Rss(KB)
                        ------                         ------
           Java Heap:     6572                          27056
         Native Heap:    21192                          23216
                Code:   248252                         356876
               Stack:     1956                           2148
            Graphics:    74804                          74804
       Private Other:   250844
              System:    26730
             Unknown:                                  250696

           TOTAL PSS:   630350            TOTAL RSS:   734796       TOTAL SWAP PSS:       87

 Objects
               Views:       16         ViewRootImpl:        1
         AppContexts:        6           Activities:        1
              Assets:       31        AssetManagers:        0
       Local Binders:       25        Proxy Binders:       43
       Parcel memory:       11         Parcel count:       44
    Death Recipients:        4      OpenSSL Sockets:        2
            WebViews:        0

 SQL
         MEMORY_USED:      209
  PAGECACHE_OVERFLOW:       78          MALLOC_SIZE:       46

 DATABASES
      pgsz     dbsz   Lookaside(b)          cache  Dbname
         4       24             84         8/25/7  /data/user/0/com.tectree.eto/databases/thinkingdata
         4       52            120       14/31/13  /data/user/0/com.tectree.eto/databases/crashSight_db_

192.168.10.209 - - [22/Dec/2023 16:08:54] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&wifi_switch=true&process=3941%3Acom.tectree.eto&=1703232516280 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:08:55] "GET /apm/battery?platform=Android&device=d330c5b9(Redmi%20K30)&
=1703232516283 HTTP/1.1" 200 -
[E 231222 16:08:55 apm:159] 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "C:\SoloX\solox\public\apm.py", line 152, in getAndroidMemory
totalPass = round(float(float(m_total.group(1))) / 1024, 2)
AttributeError: 'NoneType' object has no attribute 'group'
192.168.10.209 - - [22/Dec/2023 16:08:55] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&wifi_switch=true&process=3941%3Acom.tectree.eto&=1703232516285 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:08:55] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&process=3941%3Acom.tectree.eto&
=1703232516281 HTTP/1.1" 200 -
com.tectree.eto/com.epicgames.unreal.GameActivity#0
['33333333', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '46932090514122\t46932108578914\t46932089157612', '46932090514122\t46932150325476\t46932089157612', '46932090514122\t46932225082664\t46932089157612', '46932090514122\t46932550061101\t46932089157612', '46932090514122\t46932566717768\t46932089157612']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['46932090514122', '46932108578914', '46932089157612']
['46932090514122', '46932150325476', '46932089157612']
['46932090514122', '46932225082664', '46932089157612']
['46932090514122', '46932550061101', '46932089157612']
['46932090514122', '46932566717768', '46932089157612']

@rafa0128
Copy link
Member

继续拉代码,memory应该也好了

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

大佬牛的!
image

192.168.10.209 - - [22/Dec/2023 16:17:02] "GET /apm/fps?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&surv=true&=1703232986947 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:17:03] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&wifi_switch=true&process=3941%3Acom.tectree.eto&
=1703232986953 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:17:03] "GET /apm/cpu?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&process=3941%3Acom.tectree.eto&=1703232986949 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:17:03] "GET /apm/battery?platform=Android&device=d330c5b9(Redmi%20K30)&
=1703232986954 HTTP/1.1" 200 -
[I 231222 16:17:04 apm:149] memory info: Applications Memory Usage (in Kilobytes):
Uptime: 47441517 Realtime: 776860791

** MEMINFO in pid 3941 [com.tectree.eto] **
                   Pss  Private  Private  SwapPss      Rss     Heap     Heap     Heap
                 Total    Dirty    Clean    Dirty    Total     Size    Alloc     Free
                ------   ------   ------   ------   ------   ------   ------   ------
  Native Heap    25525    25160        8       53    27144    41716    37752     3965
  Dalvik Heap     6897     2172     4552       18     8752    11351     2838     8513
 Dalvik Other     2948     1812       28        0     4696
        Stack     2286     2212        0        0     2376
       Ashmem       19        0        0        0      908
      Gfx dev   319716   319716        0        0   319716
    Other dev      256      172        8        0      772
     .so mmap   230454      444   214300        0   272692
    .jar mmap     4359        0     1132        0    33332
    .apk mmap     1051        0      688        0     2932
    .ttf mmap     3352        0     3260        0     3552
    .dex mmap     4451       64     4204        0     5348
    .oat mmap       50        0        0        0     2732
    .art mmap     6318     3544      904       15    18284
   Other mmap       67        8       12        0      776
   EGL mtrack    48924    48924        0        0    48924
    GL mtrack      960      960        0        0      960
      Unknown   589551   589480        4        0   589916
        TOTAL  1247270   994668   229100       86  1343812    53067    40590    12478

 App Summary
                       Pss(KB)                        Rss(KB)
                        ------                         ------
           Java Heap:     6620                          27036
         Native Heap:    25160                          27144
                Code:   224104                         322124
               Stack:     2212                           2376
            Graphics:   369600                         369600
       Private Other:   596072
              System:    23502
             Unknown:                                  595532

           TOTAL PSS:  1247270            TOTAL RSS:  1343812       TOTAL SWAP PSS:       86

 Objects
               Views:       16         ViewRootImpl:        1
         AppContexts:        6           Activities:        1
              Assets:       31        AssetManagers:        0
       Local Binders:       29        Proxy Binders:       44
       Parcel memory:       11         Parcel count:       44
    Death Recipients:        4      OpenSSL Sockets:        0
            WebViews:        0

 SQL
         MEMORY_USED:      209
  PAGECACHE_OVERFLOW:       78          MALLOC_SIZE:       46

 DATABASES
      pgsz     dbsz   Lookaside(b)          cache  Dbname
         4       24             91       59/203/8  /data/user/0/com.tectree.eto/databases/thinkingdata
         4       52            120      14/208/13  /data/user/0/com.tectree.eto/databases/crashSight_db_

192.168.10.209 - - [22/Dec/2023 16:17:04] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=d330c5b9(Redmi%20K30)&process=3941%3Acom.tectree.eto&=1703232986955 HTTP/1.1" 200 -
192.168.10.209 - - [22/Dec/2023 16:17:04] "GET /apm/battery?platform=Android&device=d330c5b9(Redmi%20K30)&
=1703232986959 HTTP/1.1" 200 -
com.tectree.eto/com.epicgames.unreal.GameActivity#0
['16666666', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '0\t0\t0', '46932090514122\t46932108578914\t46932089157612', '46932090514122\t46932150325476\t46932089157612', '46932090514122\t46932225082664\t46932089157612', '46932090514122\t46932550061101\t46932089157612', '46932090514122\t46932566717768\t46932089157612', '47054903418607\t47054919922304\t47054906039075', '47055349807617\t47055369949023\t47055350472929', '47055390919388\t47055419952669\t47055392179648', '47055564129023\t47055586878658\t47055564883658', '47055897065742\t47055936605585\t47055923164700', '47056391765429\t47056420243085\t47056396132669', '47056898619752\t47056919951783\t47056901916002', '47057390626679\t47057419944543\t47057398998345', '47057729666730\t47057769938918\t47057729582980', '47058225621314\t47058253317564\t47058228770116', '47058533119959\t47058553739074\t47058535682720', '47058714635116\t47058736632980\t47058715236053', '47058915448657\t47058936619595\t47058918368240', '47059410561417\t47059436595115\t47059411101730', '47059877596053\t47059903292823\t47059882042823', '47061249820948\t47061286820062\t47061270514646', '47061299183708\t47061336700062\t47061313724542', '47061597793812\t47061636603760\t47061607432354', '47061741185219\t47061786667562\t47061744345635', '47062247560479\t47062269973448\t47062248509437', '47062710178447\t47062736845947\t47062718842510', '47062878881104\t47062903807979\t47062879363968', '47063078087353\t47063103305270\t47063079347926', '47063277288447\t47063303285322\t47063283515999', '47063463048968\t47063486601051\t47063467230999', '47063628232197\t47063653259489\t47063632425530', '47064124558447\t47064153300061\t47064130321728', '47064483967665\t47064503306728\t47064484619020']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['0', '0', '0']
['46932090514122', '46932108578914', '46932089157612']
['46932090514122', '46932150325476', '46932089157612']
['46932090514122', '46932225082664', '46932089157612']
['46932090514122', '46932550061101', '46932089157612']
['46932090514122', '46932566717768', '46932089157612']
['47054903418607', '47054919922304', '47054906039075']
['47055349807617', '47055369949023', '47055350472929']
['47055390919388', '47055419952669', '47055392179648']
['47055564129023', '47055586878658', '47055564883658']
['47055897065742', '47055936605585', '47055923164700']
['47056391765429', '47056420243085', '47056396132669']
['47056898619752', '47056919951783', '47056901916002']
['47057390626679', '47057419944543', '47057398998345']
['47057729666730', '47057769938918', '47057729582980']
['47058225621314', '47058253317564', '47058228770116']
['47058533119959', '47058553739074', '47058535682720']
['47058714635116', '47058736632980', '47058715236053']
['47058915448657', '47058936619595', '47058918368240']
['47059410561417', '47059436595115', '47059411101730']
['47059877596053', '47059903292823', '47059882042823']
['47061249820948', '47061286820062', '47061270514646']
['47061299183708', '47061336700062', '47061313724542']
['47061597793812', '47061636603760', '47061607432354']
['47061741185219', '47061786667562', '47061744345635']
['47062247560479', '47062269973448', '47062248509437']
['47062710178447', '47062736845947', '47062718842510']
['47062878881104', '47062903807979', '47062879363968']
['47063078087353', '47063103305270', '47063079347926']
['47063277288447', '47063303285322', '47063283515999']
['47063463048968', '47063486601051', '47063467230999']
['47063628232197', '47063653259489', '47063632425530']
['47064124558447', '47064153300061', '47064130321728']
['47064483967665', '47064503306728', '47064484619020']

@rafa0128
Copy link
Member

系统写的数据太慢,很多都是0,估计你那台设备计算的fps可能不准。这个没办法了

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

系统写的数据太慢,很多都是0,估计你那台设备计算的fps可能不准。这个没办法了

晓得~

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

我还有一台 OnePlus 被借走了,下周回来试试它能获取到 FPS 不~

@rafa0128
Copy link
Member

@JIUJIUs 兄弟不要吝啬你的小星星,帮忙点起来吧😄

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

@JIUJIUs 兄弟不要吝啬你的小星星,帮忙点起来吧😄

实不相瞒,不太会 GIt ,但是我尝试点了,是这样吗?

image

@rafa0128
Copy link
Member

是的,ok了,静静等待2.8.8发布吧

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 22, 2023

是的,ok了,静静等待2.8.8发布吧

好的,爱你~

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 26, 2023

大佬,我又来了,换了一台 OnePlus11 ,页面上没有获取到 mem 和 fps 信息,截图&日志如下~

image

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#0
---- TIME: 2023-12-26 15:12:17.865 ----
16666666

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#0
---- TIME: 2023-12-26 15:12:31.044 ----
16666666

192.168.10.209 - - [26/Dec/2023 15:12:48] "GET /apm/battery?platform=Android&device=fc1e621d(PHB110)&=1703574493576 HTTP/1.1" 200 -
192.168.10.209 - - [26/Dec/2023 15:12:48] "GET /apm/network?model=normal&platform=Android&pkgname=com.tectree.eto&device=fc1e621d(PHB110)&wifi_switch=true&process=11959%3Acom.tectree.eto&
=1703574493577 HTTP/1.1" 200 -
[E 231226 15:12:48 android_fps:294] an exception hanpend in fps _collector_thread , reason unkown!
[D 231226 15:12:48 android_fps:296] Traceback (most recent call last):
File "C:\SoloX\solox\public\android_fps.py", line 269, in _collector_thread
refresh_period, new_timestamps = self._get_surfaceflinger_frame_data()
File "C:\SoloX\solox\public\android_fps.py", line 416, in _get_surfaceflinger_frame_data
if len(results) <= 1 or int(results[-1].split()[0]) ==0:
ValueError: invalid literal for int() with base 10: 'OPlusFrameTracker'

192.168.10.209 - - [26/Dec/2023 15:12:48] "GET /apm/fps?model=normal&platform=Android&pkgname=com.tectree.eto&device=fc1e621d(PHB110)&surv=true&=1703574493580 HTTP/1.1" 200 -
[E 231226 15:12:49 apm:161] 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "C:\SoloX\solox\public\apm.py", line 155, in getAndroidMemory
swapPass = round(float(float(m_swap.group(1))) / 1024, 2)
AttributeError: 'NoneType' object has no attribute 'group'
192.168.10.209 - - [26/Dec/2023 15:12:49] "GET /apm/mem?model=normal&platform=Android&pkgname=com.tectree.eto&device=fc1e621d(PHB110)&process=11959%3Acom.tectree.eto&
=1703574493579 HTTP/1.1" 200 -
192.168.10.209 - - [26/Dec/2023 15:12:49] "GET /apm/battery?platform=Android&device=fc1e621d(PHB110)&_=1703574493581 HTTP/1.1" 200 -
[I 231226 15:12:50 apm:149] memory info: Applications Memory Usage (in Kilobytes):
Uptime: 380866 Realtime: 380866

** MEMINFO in pid 11959 [com.tectree.eto] **
                   Pss  Private  Private     Swap      Rss     Heap     Heap     Heap
                 Total    Dirty    Clean    Dirty    Total     Size    Alloc     Free
                ------   ------   ------   ------   ------   ------   ------   ------
  Native Heap    31230    30972        0        0    34552    65536    36738    28797
  Dalvik Heap     2097     1984        0        0    10664    27479     2903    24576
 Dalvik Other     2290     1568        0        0     5108
        Stack     2340     2276        0        0     2416
       Ashmem       16        0        0        0      556
      Gfx dev    81696    81696        0        0    81700
    Other dev      111        0       20        0      916
     .so mmap   243733      860   230076        0   310416
    .jar mmap     2403        0      124        0    49712
    .apk mmap      213        0        0        0     3052
    .ttf mmap       41        0        0        0      220
    .dex mmap     4472        4     4464        0     5212
    .oat mmap       14        0        0        0     2084
    .art mmap     5894     4364       36        0    21784
   Other mmap       54        8        0        0     2064
   EGL mtrack    49128    49128        0        0    49128
    GL mtrack     3072     3072        0        0     3072
      Unknown   571501   571456        0        0   572432
        TOTAL  1000305   747388   234720        0  1155088    93015    39641    53373

 App Summary
                       Pss(KB)                        Rss(KB)
                        ------                         ------
           Java Heap:     6384                          32448
         Native Heap:    30972                          34552
                Code:   235540                         371960
               Stack:     2276                           2416
            Graphics:   133896                         133900
       Private Other:   573040
              System:    18197
             Unknown:                                  579812

           TOTAL PSS:  1000305            TOTAL RSS:  1155088      TOTAL SWAP (KB):        0

 Objects
               Views:       16         ViewRootImpl:        1
         AppContexts:        5           Activities:        1
              Assets:       29        AssetManagers:        0
       Local Binders:       31        Proxy Binders:       57
       Parcel memory:       13         Parcel count:       54
    Death Recipients:        1      OpenSSL Sockets:        2
            WebViews:        0

 SQL
         MEMORY_USED:      211
  PAGECACHE_OVERFLOW:       78          MALLOC_SIZE:       46

 DATABASES
      pgsz     dbsz   Lookaside(b)          cache  Dbname
         4       52            117      13/387/12  /data/user/0/com.tectree.eto/databases/crashSight_db_
         4       24            111      68/386/11  /data/user/0/com.tectree.eto/databases/thinkingdata

@smart-test-ti smart-test-ti deleted a comment from JIUJIUs Dec 26, 2023
@rafa0128
Copy link
Member

adb -s device id shell dumpsys SurfaceFlinger --list | findstr pkgname
结果给我看看

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 26, 2023

adb -s device id shell dumpsys SurfaceFlinger --list | findstr pkgname 结果给我看看

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --list | findstr com.tectree.eto
40a087 ActivityRecordInputSink com.tectree.eto/com.epicgames.unreal.GameActivity#463
ActivityRecord{ce1e8c6 u0 com.tectree.eto/com.epicgames.unreal.GameActivity}#452
776f1f5 com.tectree.eto/com.epicgames.unreal.GameActivity#466
Background for SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#473
SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#469
SurfaceViewcom.tectree.eto/com.epicgames.unreal.GameActivity#470
com.tectree.eto/com.epicgames.unreal.GameActivity#467
Bounds for - com.tectree.eto/com.epicgames.unreal.GameActivity#468

@rafa0128
Copy link
Member

adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#469
adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#470
adb shell dumpsys SurfaceFlinger --latency SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#469
adb shell dumpsys SurfaceFlinger --latency SurfaceViewcom.tectree.eto/com.epicgames.unreal.GameActivity#470

这四个都执行看看,执行久一点,看看哪个有不是0的数据,都是0的就不用发了

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 26, 2023

adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#469 adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#470 adb shell dumpsys SurfaceFlinger --latency SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#469 adb shell dumpsys SurfaceFlinger --latency SurfaceViewcom.tectree.eto/com.epicgames.unreal.GameActivity#470

这四个都执行看看,执行久一点,看看哪个有不是0的数据,都是0的就不用发了

好像都是 16666666

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#469
---- TIME: 2023-12-26 15:39:28.444 ----
16666666

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency com.tectree.eto/com.epicgames.unreal.GameActivity#470
---- TIME: 2023-12-26 15:39:33.819 ----
16666666

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency SurfaceViewcom.tectree.eto/com.epicgames.unreal.GameActivity#470
---- TIME: 2023-12-26 15:39:38.694 ----
16666666

C:\Users\Administrator>adb shell dumpsys SurfaceFlinger --latency SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#469
---- TIME: 2023-12-26 15:39:43.816 ----
16666666
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
OPlusFrameTracker

@rafa0128
Copy link
Member

rafa0128 commented Dec 26, 2023

16666666这个不管,目前程序是用了这个SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#469,一直都是0的话就没办法了,这个要靠系统把数据写进来才可以,有些设备是写的慢有些压根没写。安卓没办法不同机型机制都不太一样。

内存的我兼容了

@JIUJIUs
Copy link
Author

JIUJIUs commented Dec 26, 2023

16666666这个不管,目前程序是用了这个SurfaceView[com.tectree.eto/com.epicgames.unreal.GameActivity]#469,一直都是0的话就没办法了,这个要靠系统把数据写进来才可以,有些设备是写的慢有些压根没写。安卓没办法不同机型机制都不太一样。

内存的我兼容了

好的了解,辛苦大佬·

@katyhudson
Copy link

太强了太耀眼了。大佬对鸿蒙也支持吗,我还没设备可以对比测试

@rafa0128 rafa0128 pinned this issue Feb 28, 2024
@lin-wu-1990
Copy link

换了小米、华为都没办法拿到fps。。android12、13的,FPS一直是空,但是换成其他原生的app就可以,是unity的现在不支持吗

@rafa0128 rafa0128 changed the title 不懂就问:FPS 数据获取不到,请问需要怎么开启? 不懂就问:Android FPS 数据获取不到,请问需要怎么开启? Aug 23, 2024
@liuzhudemeng
Copy link

surfaceview

试了下用 surfaceview ,但还是没有 FPS 数据。(设备:ADT-AN00、PHB110)

麻烦问题下,你那边可以了么,我的手机(PHB110)也是获取不到fps,请问怎么解决

@hzm
Copy link

hzm commented Sep 21, 2024

其实还有一种情况,Android 12以后,SurfaceView引入了一个Blast,导致安卓12以上的设备,其实需要通过含有BLAST的字段的那个做匹配,这样获取到的fps数据才是正确的,也可能是我测试的是unity制作的应用。但按照我后面改的代码,其他应用我测试目前也没有问题,其他应用会走get_surfaceview而不是get_surfaceview_activity。

网上搜索到的BLAST的解释:
Android S(也就是12.0)版本之前,关于应用显示方面面临几个问题:应用程序在缓冲区的提交中灵活性不足,窗口与应用绘制之间无法做到同步,多进程数据无法做到同步。BLAST 旨在解决这两个问题,同时简化 SF 中的模型。

本地获取的数据:
C:\Users\hzm>adb -s P7PR9PZHEAMFSKZD shell dumpsys SurfaceFlinger --list | findstr com.KST.CS4Like_development
ActivityRecord{a6723a9 u0 com.KST.CS4Like_development/com.easy.game.GamePlayerActivity#0
56d18fd com.KST.CS4Like_development/com.easy.game.GamePlayerActivity#0
Background for SurfaceView[com.KST.CS4Like_development/com.easy.game.GamePlayerActivity]#0
SurfaceView[com.KST.CS4Like_development/com.easy.game.GamePlayerActivity]#0
SurfaceViewcom.KST.CS4Like_development/com.easy.game.GamePlayerActivity#0
com.KST.CS4Like_development/com.easy.game.GamePlayerActivity#0
Bounds for - com.KST.CS4Like_development/com.easy.game.GamePlayerActivity#0

C:\Users\hzm>adb -s P7PR9PZHEAMFSKZD shell dumpsys SurfaceFlinger --latency "SurfaceView[com.KST.CS4Like_development/com.easy.game.GamePlayerActivity]#0"
16666667
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0

C:\Users\hzm>adb -s P7PR9PZHEAMFSKZD shell dumpsys SurfaceFlinger --latency "SurfaceViewcom.KST.CS4Like_development/com.easy.game.GamePlayerActivity#0"
16666667
495498343153455 495498379510686 495498371345532
495498384762148 495498429195994 495498412915686
495498427926071 495498462302455 495498456181840
495498470463071 495498511997148 495498498768225
495498512523378 495498545083686 495498540842455
495498555463301 495498594759302 495498583697148
495498597886071 495498627886686 495498626127686
495498639002455 495498677553148 495498668212917
495498682674455 495498727230686 495498711051302
495498724559378 495498760335994 495498752864532
495498766818378 495498810007609 495498795065148
495498806847917 495498843141763 495498835531302
495498849801148 495498892810994 495498878220609
495498890802378 495498925918148 495498919358378
495498932127071 495498975583302 495498960346071
495498972440302 495499008701532 495499000866686
495499014123378 495499058372302 495499042674686
495499054206994 495499091488917 495499084103686
495499094180917 495499124618148 495499122515686
495499134571378 495499174286378 495499162977763
495499173088532 495499207396302 495499201748225
495499213951378 495499257079302 495499242295609
495499253391378 495499290190686 495499281729532
495499291287378 495499323296609 495499319898686
495499331650994 495499372982686 495499360158378
495499370664609 495499406101840 495499398976609
495499408916917 495499439211917 495499437702686
495499448962148 495499488887686 495499477552302
495499488082994 495499521993148 495499516704840
495499527162994 495499571675609 495499555345763
495499565022994 495499604775686 495499593660609
495499605165532 495499637891378 495499633584532
495499644768225 495499687579302 495499672926148
495499682977763 495499720697148 495499711645148
495499724082763 495499753807071 495499752255994
495499763717763 495499803482763 495499792234148
495499803002455 495499836585148 495499832075071
495499843457225 495499886269763 495499872116225
495499883643686 495499919374455 495499911710763
495499923642071 495499969058994 495499951722379
495499966416302 495500002160225 495499994774455
495500009671686 495500051832302 495500038031917
495500051123302 495500084954148 495500082541225
495500096469532 495500134623379 495500124172917
495500140802763 495500184297840 495500168361840
495500184785763 495500217425225 495500212298455
495500224035917 495500267089148 495500255241763
495500272486455 495500316766379 495500300384532
495500314597148 495500349874379 495500342912225
495500357426994 495500399556609 495500386113763
495500399169455 495500432683302 495500427691379
495500442487379 495500482336302 495500470836609
495500484161455 495500515459994 495500512980917
495500526133532 495500565137455 495500554689148
495500569546994 495500614807994 495500597569840
495500611905840 495500647925532 495500640279994
495500653086455 495500697594686 495500682154686
495500696300302 495500730774379 495500724829532
495500738541148 495500780385532 495500766765840
495500780173225 495500813503609 495500808639609
495500822234455 495500863158686 495500850429148
495500863302148 495500896276532 495500891539686
495500904478379 495500945960302 495500932689763
495500945774071 495500979076302 495500974318379
495500986479917 495501028749840 495501015078455
495501026476532 495501061852302 495501054480225
495501067565225 495501111536532 495501095908302
495501107420532 495501144655994 495501135942686
495501147468532 495501177755609 495501175922994
495501187007686 495501227441148 495501215273456
495501225211609 495501260546686 495501253948225
495501265334456 495501310229148 495501293648609
495501304513225 495501343330148 495501333346148
495501343829225 495501376463609 495501372399609
495501382809532 495501426134148 495501411242379
495501421241225 495501459237148 495501449523379
495501461045532 495501492365148 495501489697225
495501499869148 495501542088225 495501528323071
495501538943302 495501575175609 495501567326456
495501578257840 495501608290686 495501606560225
495501617090148 495501657939071 495501645383302
495501655438379 495501691070456 495501684566456
495501696746763 495501740743609 495501724783071
495501735920302 495501773831994 495501765606071
495501775882686 495501806951917 495501804536225
495501814423302 495501856618148 495501843083302
495501855774686 495501889734379 495501884466148
495501896166379 495501939420225 495501924534071
495501939094071 495501972538456 495501967687994
495501981445763 495502022212917 495502009607071
495502024087609 495502071880840 495502054345840
495502068734148 495502104987302 495502097643071
495502111798071 495502154668225 495502140404917
495502153627609 495502187790071 495502182159379
495502197243609 495502237463917 495502225867686
495502241109532 495502270618456 495502269500302
495502283714763 495502320235071 495502311452302
495502327891302 495502369907379 495502356178994
495502370708225 495502403031379 495502398772302
495502409108532 495502452694686 495502440641763
495502456379686 495502485821456 495502484438686
495502499773456 495502535484840 495502528413840
495502542183686 495502585155379 495502570240302
495502585078456 495502618286763 495502613524917
495502627280533 495502667945148 495502655667379
495502670044225 495502701071686 495502698404225
495502712229763 495502750735379 495502740107302
495502754828609 495502800415917 495502782890071
495502796579302 495502833535917 495502825022686
495502837981763 495502883207994 495502866177840
495502879190686 495502916326456 495502907911994
495502920560917 495502965995994 495502949216225
495502960691609 495502999099686 495502989413148
495503002556609 495503032236302 495503030916840
495503043287609 495503081886071 495503071815994
495503083158994 495503115016533 495503112662456
495503122013456 495503164686994 495503150377225
495503163255609 495503197794686 495503191518456
495503202942994 495503247494071 495503231182994
495503241196917 495503280594994 495503269423071
495503281527994 495503313696302 495503309756609
495503319726763 495503363377840 495503348605763
495503358023071 495503396498763 495503386902686
495503398501148 495503429630379 495503426490071
495503437779302 495503479285225 495503466082379
495503475863379 495503512385533 495503503848302
495503516723302 495503545504609 495503544391302

所以可以在_get_surfaceflinger_frame_data中get_surfaceview得到的focus_window通过dumpsys SurfaceFlinger --latency xxx获取的数据不对的时候,将get_surfaceview_activity的判断中加入一个判断BLAST字符串是否存在,同时后面activity_line不做处理,就能在android 12以及以上设备得到正确的结果,这是我临时修改后,可以正确在安卓12上获取fps数据的代码,作者可以看看是否可以改动一下。这只是临时版本,也可以考虑判断设备sdk版本是否是31,然后加入相应判断即可。仅供作者参考,作者的这个项目我很佩服,谢谢。
image

def get_surfaceview_activity(self):
    activity_name = ''
    activity_line = ''
    try:
        dumpsys_result = adb.shell(cmd='dumpsys SurfaceFlinger --list | {} {}'.format(d.filterType(), self.package_name), deviceId=self.device)
        dumpsys_result_list = dumpsys_result.split('\n')    
        for line in dumpsys_result_list:
            if line.startswith('SurfaceView') and line.find(self.package_name) != -1 and line.find("BLAST") != -1:
                activity_line = line.strip()
                break
        if activity_line:
            if activity_line.find(' ')  != -1:      
                activity_name = activity_line.split(' ')[2]
            else:
                activity_name = activity_line
        else:
            activity_name = dumpsys_result_list[len(dumpsys_result_list) - 1]
            if not activity_name.__contains__(self.package_name):
                logger.error('get activity name failed, Please provide SurfaceFlinger --list information to the author ' + activity_name)
                logger.info('dumpsys SurfaceFlinger --list info: {}'.format(dumpsys_result))
    except Exception:
        traceback.print_exc()
        logger.error('get activity name failed, Please provide SurfaceFlinger --list information to the author')
        logger.info('dumpsys SurfaceFlinger --list info: {}'.format(dumpsys_result))
    return activity_name

@rafa0128

image
image
有部分字符被github给转义了,具体可以看下面的截图。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants