ns_statscounter_encryptedproxydot = 76,
ns_statscounter_encryptedproxydoh = 77,
- ns_statscounter_max = 80,
-};
+ ns_additive_count = 78,
-// XXX(ap): highwater counters
-enum {
ns_statscounter_tcphighwater = 78,
ns_statscounter_recurshighwater = 79,
- ns_highwater_max = ns_statscounter_max,
+ ns_statscounter_max = 80,
};
enum {
- ns_statscounter_total = ns_statscounter_max + ns_highwater_max,
+ ns_highwater_count = ns_statscounter_max - ns_additive_count,
};
void
ns_stats_create(isc_mem_t *mctx, isc_statsmulti_t **statsp) {
REQUIRE(statsp != NULL && *statsp == NULL);
- /*
- * Create ns statistics using statsmulti for better multithreading performance.
- * We have 78 additive counters and ns_highwater_max highwater counters.
- */
- isc_statsmulti_create(mctx, statsp, 78, 2);
+ isc_statsmulti_create(mctx, statsp, ns_additive_count, ns_highwater_count);
}
/*%