Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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;
}