# 下载jemalloc
https://github.com/jemalloc/jemalloc/tree/stable-4
# 下载demo,解压。修改run_asr_chain_task_test.sh中的路径为本地合理路径
# DUMPE_DIR dump的内存文件所在目录
export DUMPE_DIR=/home/admin/testlog/aa
# LD_PRELOAD libjemalloc.so.2下载保存的目录
export LD_PRELOAD=/home/admin/00-develop/test/jeprof/libjemalloc.so.2
# 执行被测程序
./xxx
# 查看demo目录下是否有test.log
# 查看DUMPE_DIR 目录下有无.heap文件
备注:参考:https://docs.tibco.com/pub/activematrix_businessworks/6.6.1/doc/html/GUID-231E1EFC-EA7C-4072-B0F4-0D92093D3161.html