Enable heap profiling on MacOS

This commit is contained in:
Shirui Cheng
2023-12-04 12:07:54 -08:00
committed by Qi Wang
parent 11038ff762
commit 4b555c11a5
4 changed files with 139 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh
if [ "x${enable_prof}" = "x1" ] ; then
export MALLOC_CONF="prof:true,prof_active:false,prof_gdump:true"
export MALLOC_CONF="prof:true,prof_active:false,prof_gdump:true,lg_prof_sample:0"
fi