MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sizes.c
1 #include "config.h"
2 #include <stdio.h>
3 
4 #include "memcached.h"
5 
6 static void display(const char *name, size_t size) {
7  printf("%s\t%d\n", name, (int)size);
8 }
9 
10 int main(int argc, char **argv) {
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("Libevent thread",
19  sizeof(LIBEVENT_THREAD));
20  display("Connection", sizeof(conn));
21 
22  printf("----------------------------------------\n");
23 
24  display("libevent thread cumulative", sizeof(LIBEVENT_THREAD));
25  display("Thread stats cumulative\t", sizeof(struct thread_stats));
26 
27  return 0;
28 }