smart-test-ti / SoloX

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

选择应用名称后,提示:[W 230426 18:05:48 common:81] no pid found #146

Closed ls1509 closed 1 year ago

ls1509 commented 1 year ago

由于common.py文件中 getPid()方法 shell ps -ef 中的-ef在windows系统中会导致获取不到进程信息,从而获取不到Pid,导致内存信息获取的时候报错

ls1509 commented 1 year ago

image

rafa0128 commented 1 year ago

-ef是显示所有进程,不加的话有些进程windows是不展示的,你确定你的app进程还在吗?重新连接跑一下?不太可能有问题这里

ls1509 commented 1 year ago

明白了;可能只是我电脑的环境有问题,因为我执行获取pid命令的时候会有错误返回 C:\Users\ls150>adb shell ps -ef bad pid '-ef' 打扰了

rafa0128 commented 1 year ago

后续按照规范提问题。https://github.com/smart-test-ti/SoloX/issues/49