卡顿分析-运行systrace.py报错

报错信息如下:(真机正常,模拟器报错-mumu模拟器)
Traceback (most recent call last):
File “systrace.py”, line 49, in
sys.exit(run_systrace.main())
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/run_systrace.py”, line 205, in main
main_impl(sys.argv)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/run_systrace.py”, line 185, in main_impl
controller.StartTracing()
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/systrace_runner.py”, line 46, in StartTracing
self._tracing_controller.StartTracing()
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/tracing_controller.py”, line 156, in StartTracing
timeout=self._controller_config.timeout):
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/common/py_utils/py_utils/init.py”, line 103, in RunWithTimeout
return timeout_retry.Run(func, timeout, 0, args=args)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/utils/timeout_retry.py”, line 164, in Run
error_log_func=error_log_func)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/utils/reraiser_thread.py”, line 199, in JoinAll
self._JoinAll(watcher, timeout)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/utils/reraiser_thread.py”, line 171, in _JoinAll
thread.ReraiseIfException()
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/utils/reraiser_thread.py”, line 94, in run
self._ret = self._func(*self._args, **self._kwargs)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/utils/timeout_retry.py”, line 156, in
lambda: func(*args, **kwargs), name=thread_name)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/tracing_agents/android_cgroup_agent.py”, line 62, in StartAgentTracing
self._trace_data += self._get_cgroup_info()
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/tracing_agents/android_cgroup_agent.py”, line 94, in _get_cgroup_info
tasks = self._device_utils.ReadFile(tasks_file).split(’\n’)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/decorators.py”, line 56, in timeout_retry_wrapper
return impl()
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/decorators.py”, line 51, in impl
return f(*args, **kwargs)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/device_utils.py”, line 2437, in ReadFile
return self._ReadFileWithPull(device_path)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/device_utils.py”, line 2383, in _ReadFileWithPull
self.adb.Pull(device_path, host_temp_path)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/sdk/adb_wrapper.py”, line 594, in Pull
self._RunDeviceAdbCmd(cmd, timeout, retries)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/sdk/adb_wrapper.py”, line 367, in _RunDeviceAdbCmd
check_error=check_error)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/decorators.py”, line 56, in timeout_retry_wrapper
return impl()
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/decorators.py”, line 51, in impl
return f(*args, **kwargs)
File “/Users/bytedance/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/…/…/devil/devil/android/sdk/adb_wrapper.py”, line 342, in _RunAdbCmd
device_serial)
devil.android.device_errors.AdbCommandFailedError: (device: emulator-5554) adb pull /dev/cpuset/background/tasks /var/folders/bk/zsxxy7yn73n_5q6vctd5z_n00000gp/T/tmp5LsnTC/tmp_ReadFileWithPull: failed with exit status 1 and output:

  • adb: error: remote object ‘/dev/cpuset/background/tasks’ does not exist
关闭