1#include "src/config.h" 2#include <stdio.h> 3 4#include "src/memcached.h" 5 6static void display(const char *name, size_t size) { 7 printf("%s\t%d\n", name, (int)size); 8} 9 10int main(void) { 11 12 display("Slab Stats", sizeof(struct slab_stats)); 13 display("Thread stats", 14 sizeof(struct thread_stats) 15 - (200 * sizeof(struct slab_stats))); 16 display("Global stats", sizeof(struct stats)); 17 display("Settings", sizeof(struct settings)); 18 display("Item (no cas)", sizeof(item)); 19 display("Item (cas)", sizeof(item) + sizeof(uint64_t)); 20 display("Libevent thread", 21 sizeof(LIBEVENT_THREAD) - sizeof(struct thread_stats)); 22 display("Connection", sizeof(conn)); 23 24 printf("----------------------------------------\n"); 25 26 display("libevent thread cumulative", sizeof(LIBEVENT_THREAD)); 27 display("Thread stats cumulative\t", sizeof(struct thread_stats)); 28 29 return 0; 30} 31