예제 #1
0
파일: sizes.c 프로젝트: hsharsha/memcached
int main(int argc, char **argv) {



    display("Slab Stats", sizeof(struct slab_stats));
    display("Thread stats",
            sizeof(struct thread_stats)
            - (200 * sizeof(struct slab_stats)));
    display("Global stats", sizeof(struct stats));
    display("Settings", sizeof(struct settings));
    display("Libevent thread",
            sizeof(LIBEVENT_THREAD));
    display("Connection", calc_conn_size());

    printf("----------------------------------------\n");

    display("libevent thread cumulative", sizeof(LIBEVENT_THREAD));
    display("Thread stats cumulative\t", sizeof(struct thread_stats));

    return 0;
}
예제 #2
0
파일: sizes.c 프로젝트: mrkwse/memcached
int main(int argc, char **argv) {



    display("Slab Stats", sizeof(struct slab_stats));
    display("Thread stats",
            sizeof(struct thread_stats)
            - (200 * sizeof(struct slab_stats)));
    display("Global stats", sizeof(struct stats));
    display("Settings", sizeof(struct settings));
    display("Libevent thread",
            sizeof(LIBEVENT_THREAD));
    display("Connection", calc_conn_size());

    printf("----------------------------------------\n");

    display("libevent thread cumulative", sizeof(LIBEVENT_THREAD));
    display("Thread stats cumulative\t", sizeof(struct thread_stats));
    printf("Binary protocol opcodes used\t%u / %u\n",
           count_used_opcodes(), 256);
    display_used_opcodes();

    return 0;
}