stats_new_counter
Malloctotal = stats_new_counter("alloc.total", "bytes allocated", 1);
Malloccount = stats_new_counter("alloc.calls", "total calls", 1);
Outbytes = stats_new_counter("eftwrite.total", "bytes written", 1);
Tokcount = stats_new_counter("lex.tokens", "total tokens in", 1);
Filecount = stats_new_counter("lex.files", "total files read", 0);
Addtotal = stats_new_counter("lut.adds", "total adds", 1);
Lookuptotal = stats_new_counter("lut.lookup", "total lookups", 1);
Freetotal = stats_new_counter("lut.frees", "total frees", 1);
Outcount = stats_new_counter("output.calls", "total calls", 1);
Errcount = stats_new_counter("output.errors", "total errors", 0);
Warncount = stats_new_counter("output.warnings", "total warnings", 0);
Stablecount = stats_new_counter("stable.size", "hash table size", 1);
Blockcount = stats_new_counter("stable.blocks", "blocks allocated", 1);
Add0 = stats_new_counter("stable.add0", "adds to empty buckets", 1);
Add1 = stats_new_counter("stable.add1", "adds to 1-entry buckets", 1);
Add2 = stats_new_counter("stable.add2", "adds to 2-entry buckets", 1);
Add3 = stats_new_counter("stable.add3", "adds to 3-entry buckets", 1);
Addn = stats_new_counter("stable.addn", "adds to n-entry buckets", 1);
struct stats *stats_new_counter(const char *name, const char *desc, int ext);
Configcount = stats_new_counter("parser.config", "config stmts", 1);
Propcount = stats_new_counter("parser.prop", "prop stmts", 1);
Maskcount = stats_new_counter("parser.mask", "mask stmts", 1);
Nodecount = stats_new_counter("parser.node", "nodes created", 1);
Namecount = stats_new_counter("parser.name", "names created", 1);
stats_new_counter("parser.nodesize", "sizeof(struct node)", 1);
Faultcount = stats_new_counter("parser.fault", "fault decls", 1);
Upsetcount = stats_new_counter("parser.upset", "upset decls", 1);
Defectcount = stats_new_counter("parser.defect", "defect decls", 1);
Errorcount = stats_new_counter("parser.error", "error decls", 1);
Ereportcount = stats_new_counter("parser.ereport", "ereport decls", 1);
SERDcount = stats_new_counter("parser.SERD", "SERD engine decls", 1);
STATcount = stats_new_counter("parser.STAT", "STAT engine decls", 1);
ASRUcount = stats_new_counter("parser.ASRU", "ASRU decls", 1);
FRUcount = stats_new_counter("parser.FRU", "FRU decls", 1);
Malloctotal = stats_new_counter("alloc.total", "bytes allocated", 1);
Freetotal = stats_new_counter("free.total", "bytes freed", 1);
Malloccount = stats_new_counter("alloc.calls", "alloc calls", 1);
Freecount = stats_new_counter("free.calls", "free calls", 1);
fmep->Rcount = stats_new_counter(nbuf, "ereports received", 0);
fmep->Hcallcount = stats_new_counter(nbuf, "calls to hypothesise()", 1);
fmep->Rcallcount = stats_new_counter(nbuf,
fmep->Ccallcount = stats_new_counter(nbuf, "calls to causes_test()", 1);
stats_new_counter(nbuf, "calls to effects_test()", 1);
fmep->Tcallcount = stats_new_counter(nbuf, "calls to triggered()", 1);
fmep->Marrowcount = stats_new_counter(nbuf,
fmep->diags = stats_new_counter(nbuf, "suspect lists diagnosed", 0);
statp = stats_new_counter(NULL, sname, 0);
Nfmep->Rcount = stats_new_counter(nbuf, "ereports received", 0);
stats_new_counter(nbuf, "calls to hypothesise()", 1);
Nfmep->Rcallcount = stats_new_counter(nbuf,
stats_new_counter(nbuf, "calls to causes_test()", 1);
stats_new_counter(nbuf, "calls to effects_test()", 1);
Nfmep->Tcallcount = stats_new_counter(nbuf, "calls to triggered()", 1);
Nfmep->Marrowcount = stats_new_counter(nbuf,
Nfmep->diags = stats_new_counter(nbuf, "suspect lists diagnosed", 0);
Niexpr = stats_new_counter("iexpr.niexpr", "iexpr cache entries", 1);
Nipath = stats_new_counter("ievent.nipath", "ipath cache entries", 1);
Nbytes = stats_new_counter("ievent.nbytes", "total cache size", 1);