Set whether category is enabled to value.
Declared in <balm_metricregistry.h>
void
setCategoryEnabled(
Category const* category,
bool value);
Set whether the specified category is enabled to the specified value. The behavior is undefined unless category is a valid address of a category previously returned by this metric registry. Note that this operation is thread-safe, but not atomic: Other threads may simultaneously access the current enabled value for category while this operation completes. Also note that this operation has linear runtime performance with respect to the number of registered category holders for category.
| Name | Description |
|---|---|
| category | category whose enabled state is set |
| value | new enabled state for category |