Load a default integer collector and register the category holder for a metric.
Declared in <balm_integermetric.h>
static
void
getCollector(
IntegerCollector** collector,
CategoryHolder* holder,
char const* category,
char const* metric);
Load the specified collector with the address of the default integer collector (from the default metrics manager) for the specified metric identified by the specified category and name, and register the specified holder for category. Note that *collector must be assigned before registering holder to ensure that the macros always have a valid collector when holder->enabled() is true.
| Name | Description |
|---|---|
| collector | receives the address of the default integer collector |
| holder | category holder to register for category |
| category | null-terminated metric category name |
| metric | null-terminated metric name |