1 /* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */ 2 /* For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt */ 3 4 #ifndef _COVERAGE_STATS_H 5 #define _COVERAGE_STATS_H 6 7 #include "util.h" 8 9 #if COLLECT_STATS 10 #define STATS(x) x 11 #else 12 #define STATS(x) 13 #endif 14 15 typedef struct Stats { 16 unsigned int calls; /* Need at least one member, but the rest only if needed. */ 17 #if COLLECT_STATS 18 unsigned int lines; 19 unsigned int returns; 20 unsigned int exceptions; 21 unsigned int others; 22 unsigned int new_files; 23 unsigned int missed_returns; 24 unsigned int stack_reallocs; 25 unsigned int errors; 26 unsigned int pycalls; 27 #endif 28 } Stats; 29 30 #endif /* _COVERAGE_STATS_H */ 31