Add a test-case for small profiled allocations

Validate that small allocations (i.e. those with `size <= SC_SMALL_MAXCLASS`)
which are sampled for profiling maintain the expected invariants even
though they now take up less space.
This commit is contained in:
Kevin Svetlitski
2023-06-12 14:13:17 -07:00
committed by Qi Wang
parent 5a858c64d6
commit ebd7e99f5c
3 changed files with 85 additions and 0 deletions

6
test/unit/prof_small.sh Normal file
View File

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