-
Notifications
You must be signed in to change notification settings - Fork 268
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
Error: systrace file not found: rheatrace.workspace\systemTrace.trace #111
Comments
检查下是不是没有安装python3环境?如果已经有了,可以再确认下直接使用官方的方式采集Perfetto的trace会不会遇到问题,https://perfetto.dev/docs/quickstart/android-tracing curl -O https://raw.githubusercontent.com/google/perfetto/master/tools/record_android_trace
python3 record_android_trace -o trace_file.perfetto-trace -t 10s -b 32mb \
sched freq idle am wm gfx view binder_driver hal dalvik camera input res memory |
D:\Python\Python38>curl -O https://raw.githubusercontent.com/google/perfetto/master/tools/record_android_trace D:\Python\Python38>python record_android_trace -o trace_file.perfetto-trace -t 10s -b 320mb sched freq idle am wm gfx view binder_driver hal dalvik camera input res memory Pulling into ./trace_file.perfetto-trace Opening the trace (./trace_file.perfetto-trace) in the browser |
@bianmajiang 脚本里面写死的python3,你看看创建一个python3的别名呢,后面我们都兼容下。 |
可以了。 |
请问除了python的问题还有什么会导致这个问题吗,我本地已经有python3且可以正常运行,但是依然存在Error: systrace file not found: rheatrace.workspace\systemTrace.trace问题 |
1.PC环境:Window10,JDK版本:Java 11
2.手机环境:VIVO手机,Android版本13
3.APK文件:64位,assets 目录是否包含 methodMapping.txt 文件:包含
4.编译环境:Android Studio Chipmunk|2021.2.1 Patch 1,AGP版本:com.android.tools.build:gradle:4.2.2,gradle版本:6.9.2 btrace版本:2.0.3-rc02,Java版本:Java 11,已开启R8
执行命令:java -jar rhea-trace-shell.jar -s 1ee449c3 -a com.xxx.xxx -t 10 -o output.pb -r rhea.all sched -fullClassName
报错如下:
10-11 10:36:06.946 I RheaTrace : workspace clear: C:\Users\xxx\AppData\Local\Android\Sdk\platform-tools\systrace\rheatrace.workspace
10-11 10:36:08.062 I RheaTrace : os version is 33. default capture is PerfettoCapture
10-11 10:36:10.065 RheaTrace : start tracing...
10-11 10:36:20.703 RheaTrace : stop tracing...
10-11 10:36:21.037 RheaTrace : MaxAppTraceBufferSize usage 3107072/500000000 (0%)
10-11 10:36:21.802 E RheaTrace : Error: systrace file not found: rheatrace.workspace\systemTrace.trace
10-11 10:36:21.803 E RheaTrace : Tips: your device may not support perfetto. please retry with
-mode simple
.使用-mode simple采集模式可以采集成功,但是没有ftrace信息。
The text was updated successfully, but these errors were encountered: