diff options
Diffstat (limited to 'stats.h')
-rw-r--r-- | stats.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/stats.h b/stats.h deleted file mode 100644 index cf129b6..0000000 --- a/stats.h +++ /dev/null @@ -1,17 +0,0 @@ -#define STAT_APPLY(XX)\ - XX(nfds_cnt)\ - XX(nfds_sum)\ - XX(nfds_max)\ - XX(yield_cnt) - - -#define STAT_STRUCT_FN(name) size_t name; -struct { - STAT_APPLY(STAT_STRUCT_FN) -} stats; - - -#define STAT_PRINT_FN(name) printf ( #name ": %zu\n", stats. name); -void report_stat () { - STAT_APPLY(STAT_PRINT_FN); -} |