Template DefineCollectorForStats

Utility method to generate a collector delegate for a particular Stats The generated function will have the signature of void (Collector collector)

template DefineCollectorForStats(string statVar, string collector_name) ;

Parameters

NameDescription
statVar variable of Stats type that we want to collect
collector_name name of the generated function