server-skynet-source-3rd-je.../jemalloc/test
Jason Evans 93443689a4 Add per thread allocation counters, and enhance heap sampling.
Add the "thread.allocated" and "thread.deallocated" mallctls, which can
be used to query the total number of bytes ever allocated/deallocated by
the calling thread.

Add s2u() and sa2u(), which can be used to compute the usable size that
will result from an allocation request of a particular size/alignment.

Re-factor ipalloc() to use sa2u().

Enhance the heap profiler to trigger samples based on usable size,
rather than request size.  This has a subtle, but important, impact on
the accuracy of heap sampling.  For example, previous to this change,
16- and 17-byte objects were sampled at nearly the same rate, but
17-byte objects actually consume 32 bytes each.  Therefore it was
possible for the sample to be somewhat skewed compared to actual memory
usage of the allocated objects.
2010-10-20 17:39:18 -07:00
..
allocated.c Add per thread allocation counters, and enhance heap sampling. 2010-10-20 17:39:18 -07:00
allocated.exp Add per thread allocation counters, and enhance heap sampling. 2010-10-20 17:39:18 -07:00
allocm.c Fix tests build when --with-install-suffix is set. 2010-10-07 09:53:26 -07:00
allocm.exp Add {,r,s,d}allocm(). 2010-09-17 15:46:18 -07:00
jemalloc_test.h.in Fix tests build when --with-install-suffix is set. 2010-10-07 09:53:26 -07:00
posix_memalign.c Fix tests build when --with-install-suffix is set. 2010-10-07 09:53:26 -07:00
posix_memalign.exp Fix porting regressions. 2010-09-11 23:38:12 -07:00
rallocm.c Fix tests build when --with-install-suffix is set. 2010-10-07 09:53:26 -07:00
rallocm.exp Add {,r,s,d}allocm(). 2010-09-17 15:46:18 -07:00
thread_arena.c Fix tests build when --with-install-suffix is set. 2010-10-07 09:53:26 -07:00
thread_arena.exp Add the thread.arena mallctl. 2010-08-13 17:36:00 -07:00