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

【Bug】mac os下2.6.1 运行报错 #153

Closed loneyao closed 1 year ago

loneyao commented 1 year ago

--------------------版本信息--------------------------------- 系统:mac os 11.2.3 设备:Android emulator(虚拟设备),系统:11, python: 3.10.9 solox: 2.6.1

--------------------执行的脚本--------------------------------- from solox.public.apm import APM from solox.public.common import Devices equipment = 'emulator-5554' packageName = 'com.bilibili.app.in' d = Devices() pids = d.getPid(deviceId=equipment, pkgName=packageName) # for android

apm = APM(pkgName=packageName,platform='Android', deviceId=equipment, surfaceview=True, noLog=True, pid=None) cpu = apm.collectCpu() # % memory = apm.collectMemory() # MB flow = apm.collectFlow(wifi=True) # KB fps = apm.collectFps() # HZ battery = apm.collectBattery() # level:% temperature:°C current:mA voltage:mV power:w apm = APM(pkgName=packageName,platform='Android', deviceId=equipment, surfaceview=True, noLog=False, pid=None, duration=20) # duration : second result = apm.collectAll()

--------------------以下为运行结果---------------------------------

[I 230504 15:56:55 apm:362] cpu: {'appCpuRate': 7.51, 'systemCpuRate': 100.47} [I 230504 15:56:56 apm:373] memory: {'totalPass': 145.26, 'nativePass': 49.34, 'dalvikPass': 5.68} [I 230504 15:56:57 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:56:58 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:56:58 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:56:58 common:179] Clean up useless files ... [I 230504 15:56:58 common:185] Clean up useless files success [I 230504 15:56:59 apm:362] cpu: {'appCpuRate': 6.13, 'systemCpuRate': 99.53} [I 230504 15:56:59 apm:362] cpu: {'appCpuRate': 6.16, 'systemCpuRate': 100.95} [I 230504 15:56:59 apm:362] cpu: {'appCpuRate': 6.05, 'systemCpuRate': 100.0} [I 230504 15:56:59 apm:362] cpu: {'appCpuRate': 7.14, 'systemCpuRate': 100.95} [I 230504 15:56:59 apm:362] cpu: {'appCpuRate': 6.67, 'systemCpuRate': 101.43} [I 230504 15:56:59 apm:362] cpu: {'appCpuRate': 6.7, 'systemCpuRate': 103.35} [I 230504 15:57:00 apm:373] memory: {'totalPass': 141.34, 'nativePass': 47.35, 'dalvikPass': 3.87} [I 230504 15:57:00 apm:373] memory: {'totalPass': 141.3, 'nativePass': 47.36, 'dalvikPass': 3.68} [I 230504 15:57:00 apm:373] memory: {'totalPass': 141.3, 'nativePass': 47.36, 'dalvikPass': 3.68} [I 230504 15:57:00 apm:373] memory: {'totalPass': 141.32, 'nativePass': 47.36, 'dalvikPass': 3.68} [I 230504 15:57:00 apm:373] memory: {'totalPass': 141.31, 'nativePass': 47.36, 'dalvikPass': 3.68} [I 230504 15:57:00 apm:373] memory: {'totalPass': 141.44, 'nativePass': 47.5, 'dalvikPass': 3.68} [I 230504 15:57:01 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:01 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:01 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:01 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:01 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:01 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:02 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:02 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:02 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:02 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:02 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:02 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:02 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:02 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:02 common:179] Clean up useless files ... [I 230504 15:57:02 common:185] Clean up useless files success [I 230504 15:57:02 apm:387] battery: {'level': 100, 'temperature': 25.0} Traceback (most recent call last): File "/opt/homebrew/lib/python3.10/site-packages/solox/public/apm.py", line 434, in collectAll pool = multiprocessing.Pool(processes=6) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 215, in init self._repopulate_pool() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 288, in _Popen return Popen(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

[I 230504 15:57:02 common:179] Clean up useless files ... [I 230504 15:57:02 common:185] Clean up useless files success Traceback (most recent call last): File "/opt/homebrew/lib/python3.10/site-packages/solox/public/apm.py", line 434, in collectAll pool = multiprocessing.Pool(processes=6) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 215, in init self._repopulate_pool() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 288, in _Popen return Popen(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

[I 230504 15:57:02 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:02 common:179] Clean up useless files ... [I 230504 15:57:02 common:185] Clean up useless files success [I 230504 15:57:02 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:02 apm:387] battery: {'level': 100, 'temperature': 25.0} Traceback (most recent call last): File "/opt/homebrew/lib/python3.10/site-packages/solox/public/apm.py", line 434, in collectAll pool = multiprocessing.Pool(processes=6) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 215, in init self._repopulate_pool() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 288, in _Popen return Popen(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

[I 230504 15:57:02 common:179] Clean up useless files ... [I 230504 15:57:02 common:185] Clean up useless files success Traceback (most recent call last): File "/opt/homebrew/lib/python3.10/site-packages/solox/public/apm.py", line 434, in collectAll pool = multiprocessing.Pool(processes=6) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 215, in init self._repopulate_pool() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 288, in _Popen return Popen(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

[I 230504 15:57:02 common:179] Clean up useless files ... [I 230504 15:57:02 common:185] Clean up useless files success Traceback (most recent call last): File "/opt/homebrew/lib/python3.10/site-packages/solox/public/apm.py", line 434, in collectAll pool = multiprocessing.Pool(processes=6) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 215, in init self._repopulate_pool() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 288, in _Popen return Popen(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

[I 230504 15:57:02 common:179] Clean up useless files ... [I 230504 15:57:02 common:185] Clean up useless files success Traceback (most recent call last): File "/opt/homebrew/lib/python3.10/site-packages/solox/public/apm.py", line 434, in collectAll pool = multiprocessing.Pool(processes=6) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 215, in init self._repopulate_pool() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 288, in _Popen return Popen(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

[I 230504 15:57:03 apm:373] memory: {'totalPass': 147.47, 'nativePass': 51.32, 'dalvikPass': 5.85} [I 230504 15:57:03 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:03 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:03 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:03 apm:362] cpu: {'appCpuRate': 8.87, 'systemCpuRate': 99.01} [I 230504 15:57:04 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:04 apm:373] memory: {'totalPass': 141.51, 'nativePass': 47.36, 'dalvikPass': 3.86} [I 230504 15:57:04 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:04 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:04 apm:362] cpu: {'appCpuRate': 9.09, 'systemCpuRate': 101.52} [I 230504 15:57:05 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:05 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:05 apm:373] memory: {'totalPass': 141.51, 'nativePass': 47.36, 'dalvikPass': 3.86} [I 230504 15:57:05 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:05 apm:362] cpu: {'appCpuRate': 8.46, 'systemCpuRate': 100.5} [I 230504 15:57:06 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:06 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:06 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.85} [I 230504 15:57:06 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:06 apm:362] cpu: {'appCpuRate': 8.96, 'systemCpuRate': 100.0} [I 230504 15:57:07 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:07 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:07 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.86} [I 230504 15:57:07 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:08 apm:362] cpu: {'appCpuRate': 9.0, 'systemCpuRate': 102.5} [I 230504 15:57:08 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:08 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:08 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.85} [I 230504 15:57:08 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:09 apm:362] cpu: {'appCpuRate': 8.08, 'systemCpuRate': 100.51} [I 230504 15:57:09 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:09 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:09 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.85} [I 230504 15:57:09 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:10 apm:362] cpu: {'appCpuRate': 9.05, 'systemCpuRate': 101.51} [I 230504 15:57:10 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:10 apm:373] memory: {'totalPass': 141.51, 'nativePass': 47.36, 'dalvikPass': 3.86} [I 230504 15:57:10 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:10 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:11 apm:362] cpu: {'appCpuRate': 8.74, 'systemCpuRate': 100.49} [I 230504 15:57:11 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:11 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:11 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:11 apm:373] memory: {'totalPass': 147.47, 'nativePass': 51.32, 'dalvikPass': 5.85} [I 230504 15:57:12 apm:362] cpu: {'appCpuRate': 8.25, 'systemCpuRate': 101.46} [I 230504 15:57:12 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:12 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:12 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:12 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.86} [I 230504 15:57:13 apm:362] cpu: {'appCpuRate': 8.25, 'systemCpuRate': 100.97} [I 230504 15:57:13 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:13 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:13 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:14 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.85} [I 230504 15:57:14 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:15 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:15 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:15 apm:362] cpu: {'appCpuRate': 8.0, 'systemCpuRate': 100.0} [I 230504 15:57:15 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.85} [I 230504 15:57:15 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:16 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:16 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:16 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.85} [I 230504 15:57:16 apm:362] cpu: {'appCpuRate': 8.42, 'systemCpuRate': 100.5} [I 230504 15:57:17 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:17 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:17 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:17 apm:373] memory: {'totalPass': 141.5, 'nativePass': 47.36, 'dalvikPass': 3.85} [I 230504 15:57:17 apm:362] cpu: {'appCpuRate': 8.08, 'systemCpuRate': 101.01} [I 230504 15:57:18 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:18 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:18 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:18 apm:373] memory: {'totalPass': 141.51, 'nativePass': 47.36, 'dalvikPass': 3.86} [I 230504 15:57:18 apm:362] cpu: {'appCpuRate': 8.46, 'systemCpuRate': 101.0} [I 230504 15:57:19 apm:412] fps: {'fps': 30, 'jank': 0} [I 230504 15:57:19 apm:387] battery: {'level': 100, 'temperature': 25.0} [I 230504 15:57:19 apm:401] network: {'upFlow': 0.0, 'downFlow': 0.0} [I 230504 15:57:19 apm:373] memory: {'totalPass': 147.47, 'nativePass': 51.32, 'dalvikPass': 5.85} [I 230504 15:57:19 common:300] Generating test results ... [I 230504 15:57:19 common:320] Generating test results success: /Users/mac/Desktop/automaticlive/sample/report/apm_2023-05-04-15-57-19 [I 230504 15:57:19 common:219] Generating HTML ... [I 230504 15:57:19 common:237] Generating HTML success : /Users/mac/Desktop/automaticlive/sample/report/apm_2023-05-04-15-57-19/report.html

Process finished with exit code 0

rafa0128 commented 1 year ago

多进程要在if name == 'main':下执行

if name == 'main': apm.collectAll()