参考文档
Android官网
https://developer.android.google.cn/topic/performance/tracing/command-line
https://developer.android.google.cn/studio/command-line/perfetto
Perfetto官网
https://perfetto.dev/docs/data-sources/native-heap-profiler
其他
https://blog.youkuaiyun.com/sinat_20059415/article/details/106305944
adb shell setprop persist.traced.enable 1
如下,来自https://perfetto.dev/docs/quickstart/android-tracing
1. Using the on-device /system/bin/per