diff options
author | tanyaionova <isaqtm@gmail.com> | 2019-11-20 23:29:05 +0300 |
---|---|---|
committer | tanyaionova <isaqtm@gmail.com> | 2019-11-20 23:29:05 +0300 |
commit | ac7fd63348553c2a0ad1b776c7039b1a8b60dbe8 (patch) | |
tree | 772b481416230eedfdfb55a03ef1c3e61ec23825 /stats.h | |
parent | 48debdf040d0e0b1af8d11a339ce8332e2454d3f (diff) | |
download | ash-sbox-ac7fd63348553c2a0ad1b776c7039b1a8b60dbe8.tar.gz |
Bump
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); -} |