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

View File

@@ -166,6 +166,7 @@ expect_maps_write_failure(int count) {
TEST_BEGIN(test_mdump_maps_error) {
test_skip_if(!config_prof);
test_skip_if(!config_debug);
test_skip_if(prof_dump_open_maps == NULL);
prof_dump_open_file_t *open_file_orig = prof_dump_open_file;
prof_dump_write_file_t *write_file_orig = prof_dump_write_file;