regressions/ck_epoch: Change formatting.

ck_pring
Samy Al Bahra 9 years ago
parent 7f625a6fe1
commit 03bd7a4158

@ -179,11 +179,6 @@ write_thread(void *unused CK_CC_UNUSED)
while (ck_pr_load_uint(&readers) == 0) while (ck_pr_load_uint(&readers) == 0)
ck_pr_stall(); ck_pr_stall();
if (tid == 0) {
fprintf(stderr, "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b[W] %2.2f: %c",
(double)j / ITERATE_S, animate[i % strlen(animate)]);
}
for (i = 0; i < PAIRS_S; i++) { for (i = 0; i < PAIRS_S; i++) {
ck_epoch_begin(&record, NULL); ck_epoch_begin(&record, NULL);
s = ck_stack_pop_upmc(&stack); s = ck_stack_pop_upmc(&stack);
@ -193,17 +188,15 @@ write_thread(void *unused CK_CC_UNUSED)
if (i & 1) { if (i & 1) {
ck_epoch_synchronize(&record); ck_epoch_synchronize(&record);
ck_epoch_reclaim(&record); ck_epoch_reclaim(&record);
ck_epoch_call(&record, &e->epoch_entry, destructor);
} else { } else {
ck_epoch_barrier(&record); ck_epoch_barrier(&record);
destructor(&e->epoch_entry);
} }
if (i & 1) { if (tid == 0 && (i % 16384) == 0) {
ck_epoch_call(&record, &e->epoch_entry, destructor); fprintf(stderr, "[W] %2.2f: %c\n",
} else { (double)j / ITERATE_S, animate[i % strlen(animate)]);
if (tid == 0 && i % 8192)
fprintf(stderr, "\b%c", animate[i % strlen(animate)]);
destructor(&e->epoch_entry);
} }
} }
} }
@ -211,7 +204,7 @@ write_thread(void *unused CK_CC_UNUSED)
ck_epoch_synchronize(&record); ck_epoch_synchronize(&record);
if (tid == 0) { if (tid == 0) {
fprintf(stderr, "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b[W] Peak: %u (%2.2f%%)\n Reclamations: %lu\n\n", fprintf(stderr, "[W] Peak: %u (%2.2f%%)\n Reclamations: %lu\n\n",
record.n_peak, record.n_peak,
(double)record.n_peak / ((double)PAIRS_S * ITERATE_S) * 100, (double)record.n_peak / ((double)PAIRS_S * ITERATE_S) * 100,
record.n_dispatch); record.n_dispatch);

Loading…
Cancel
Save