可参考原生atrace service修改:
/system/etc/init/atrace.rc
on property:persist.debug.atrace.boottrace=1
start boottrace
# Run atrace with the categories written in a file
#service boottrace /system/bin/atrace --async_start -f /data/misc/boottrace/categories
service boottrace /system/bin/atrace -c -b 64000 -z gfx input view sched freq wm am workq res dalvik sync disk hal rs idle mmc -t 20 -o /data/local/tmp/boot_trace
disabled
oneshot
加载查看systrace:
https://ui.perfetto.dev/#!/record/buffers

本文指导如何修改Android系统的ATrace配置,启用启动时的BootTrace,并介绍如何通过Systrace工具分析系统性能。重点在于深入理解设备性能监控和日志收集技巧。
3258

被折叠的 条评论
为什么被折叠?



