mariadb/linux/tests/test-memory-status.c
Rich Prohaska 3a78ccabec #4267 use RTLD_DEFAULT in calls to dlsym per the man page closes[t:4267]
git-svn-id: file:///svn/toku/tokudb@37852 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:59 -04:00

12 lines
300 B
C

#include <stdio.h>
#include "memory.h"
int main(void) {
toku_memory_startup();
MEMORY_STATUS_S s;
toku_memory_get_status(&s);
printf("mallocator: %s\n", s.mallocator_version);
printf("mmap threshold: %" PRIu64 "\n", s.mmap_threshold);
toku_memory_shutdown();
return 0;
}