test-memory-status.c 300 Bytes
Newer Older
1 2 3 4
#include <stdio.h>
#include "memory.h"

int main(void) {
5
    toku_memory_startup();
6 7
    MEMORY_STATUS_S s;
    toku_memory_get_status(&s);
8 9 10
    printf("mallocator: %s\n", s.mallocator_version);
    printf("mmap threshold: %" PRIu64 "\n", s.mmap_threshold);
    toku_memory_shutdown();
11 12
    return 0;
}