MCPcopy Create free account
hub / github.com/axboe/liburing / show_stats

Function show_stats

examples/proxy.c:613–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613static void show_stats(void)
614{
615 float events_per_loop = 0.0;
616 static int stats_shown;
617 int i;
618
619 if (stats_shown)
620 return;
621
622 if (events)
623 events_per_loop = (float) events / (float) event_loops;
624
625 printf("Event loops: %lu, events %lu, events per loop %.2f\n", event_loops,
626 events, events_per_loop);
627
628 for (i = 0; i < MAX_CONNS; i++) {
629 struct conn *c = &conns[i];
630
631 __show_stats(c);
632 }
633 stats_shown = 1;
634}
635
636static void sig_int(int __attribute__((__unused__)) sig)
637{

Callers 1

sig_intFunction · 0.85

Calls 1

__show_statsFunction · 0.85

Tested by

no test coverage detected