红米k40手机,MUI系统,Android SDK 33版本,也是提示不支持不支持perfetto,让增加-mode simple后抓取trace可以查看
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
### Android设备情况:Android SDK33 系统: MIUI: 14.0.8 红米K40
使用的命令:
```
java -jar rhea-trace-shell.jar -a rhea.sample.android -t 5 -o output.pb -r rhea.all sched -fullClassName
```
### 输出结果:
```
02-02 13:43:06.512 I RheaTrace : os version is 33. default capture is PerfettoCapture
02-02 13:43:08.525 RheaTrace : start tracing...
02-02 13:43:13.815 RheaTrace : stop tracing...
02-02 13:43:13.998 RheaTrace : MaxAppTraceBufferSize usage 820096/500000000 (0%)
02-02 13:43:14.137 E RheaTrace : Error: systrace file not found: rheatrace.workspace\systemTrace.trace
02-02 13:43:14.137 E RheaTrace : Tips: your device may not support perfetto. please retry with `-mode simple`.
```
### 另外!!!使用perfetto命令行,能获取到trace文件并从Perfetto网站打开查看!!使用的命令如下:
```
adb shell perfetto --out /data/misc/perfetto-traces/traces-wm wm am input gfx view res pm dalvik ss
```
### 用户权限:可获取到root权限的设备。
### 版本:
rhea_gradle_plugin_vesion=2.0.1
implementation 'com.bytedance.btrace:rhea-core:2.0.0'
apk是release版本,是通过反射调用android.os.Trace#setTracingEnabled(true)拿到自定义tag。
Contributor guide
Research direction
Start by reproducing the rhea-trace-shell.jar command on the Redmi K40 with Android SDK 33 and MIUI 14.0.8, then compare the default PerfettoCapture result with -mode simple and the adb shell perfetto command shown in the report. Done means identifying why the expected systrace file is missing or defining the supported fallback behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev, performance, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100