btrace
btrace copied to clipboard
🔥🔥 btrace(AKA RheaTrace) is a high performance Android trace tool which is based on Perfetto, it support to define custom events automatically during building apk and using bhook to provider more na...
# rhea_config.py `ATRACE_APP_GZ_FILE_LOCATION = "/sdcard/Android/data/%s/files/rhea-trace/"` remove: > # TraceSwitch.java static File getRheaTraceDir(Context context) { final String packageName = context.getPackageName(); File externalFilesDir; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.FROYO) { externalFilesDir = context.getExternalFilesDir(""); }...
➜ rheatrace python rheatrace.py -a com.test.demo -t 5 -o ./output/mynewtrace.html sched freq idle am wm gfx view binder_driver hal dalvik camera input res 2022-07-15 12:30:06,478 - rhea_trace - capture -...
`2022-03-12 16:46:26,447 - rhea_trace - main_impl - ERROR: - trace time must be specified or a non-negative number` 现在不支持按 Enter 键盘停止采集 trace 吗? 为什么文档里边写的是支持的。
2022-03-31 14:24:28.516 7791-7791/com.example.myapplication E/rhea:atrace: failed to create directory /storage/emulated/0/rhea-trace/com.example.myapplication 2022-03-31 14:24:28.555 7791-7791/com.example.myapplication I/Toast: Show toast from OpPackageName:com.example.myapplication, PackageName:com.example.myapplication 2022-03-31 14:24:33.598 7791-7791/com.example.myapplication D/Rhea:TraceSwitch: RheaTrace has not been started, just ignore! 2022-03-31...
开启多线程记录情况下:输出trace文件时报错2022-06-07 20:29:23,587 - rhea_trace - unzip_rhea_original_file - WARNING: - sdcard/rhea-trace/XXX/rhea-atrace.gz hasn't 'TRACE_END' 查看原始文件rhea-atrace.gz最后一行没有 'TRACE_END',文件大小也比正常情况下,猜测是多线程情况下写文件出问题了,导致trace无法写入、最后的trace_end也无法写入。 希望作者帮忙看下
大家做过kotlin协程trace插桩吗?大量的方法不闭合问题怎么处理?
今天在Ubuntu上升级了platform-tools版本之后,遇到了`Can't find systrace in environment path`的问题,仔细一看platform-tools目录下的systrace目录没有了。解决方法分享给各位: > 谷歌官方在22年3月发布的33.0.1版本的platform-tools包中移除了systrace,因此需要使用
已经确认集成了,并且已经打开了外部存储权限,但是就是显示失败 2022-03-18 18:51:21,220 - rhea_trace - main_impl - ERROR: - failed to write rhea-atrace.gz file completely. 2022-03-18 18:51:21,236 - rhea_trace - unzip_rhea_original_file - ERROR: - adb: error: failed to stat...
![image](https://user-images.githubusercontent.com/19900856/155326996-27e24a4b-671a-46d3-b229-76ba6f1f64f6.png) ![image](https://user-images.githubusercontent.com/19900856/155327047-4567f984-5aeb-41bb-9185-9567abb83383.png) ![image](https://user-images.githubusercontent.com/19900856/155327123-4a6c0dea-0330-4d21-b481-d8d21eefb00c.png) ![image](https://user-images.githubusercontent.com/19900856/155327524-c169fb0d-9344-4ed9-bdff-78469606342b.png) 各种外置sdk操作quan权限都给了,还是不行,请问还需要配置啥