工具链接与代码
https://github.com/albuer/heapsnap 工具源代码链接
下载的包
工具使用方式
以 se1000 evb sdk 使用为例
Step 1: 将代码放到 audio hal 路径下
aosp/vendor/siengine/hardware/modules/audio$ git status
Untracked files:
(use "git add <file>..." to include in what will be committed)
heapsnap-master/
Step 2: 编译 libehapsnap.so
可以放在 device.mk 中,通过 aosp 编译,例子如下
aosp/device/siengine/se1000$ git diff device.mk
diff --git a/device.mk b/device.mk
index 6cf7f6e..eaa3d50 100755
--- a/device.mk
+++ b/device.mk
PRODUCT_PACKAGES += \
- kdump
+ libheapsnap
生成的 so 路径
aosp/out/target/product/se1000$ find . -name libheapsnap.so
./symbols/system/lib/libheapsnap.so
./symbols/system/lib64/libheapsnap.so
. /system/lib/libheapsnap.so