mariadb/linux/tests/test-memory-status.c
Barry Perlman c1af232f67 [t:2949] Revert memory status to old design to avoid issues in portability layer, make translation to new system in ydb.c. Refs #2949.
git-svn-id: file:///svn/toku/tokudb@39389 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:08 -04:00

12 lines
306 B
C

#include <stdio.h>
#include "memory.h"
int main(void) {
toku_memory_startup();
LOCAL_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;
}