Set the enabled state of all categories to value.
Synopsis
Declared in <balm_metricregistry.h>
void
setAllCategoriesEnabled(bool value);
Description
Set whether each currently registered category is enabled to the specified value, and ensure that categories registered after this call are initialized as either enabled or disabled, accordingly. This operation is logically equivalent to iterating over the list of currently registered categories and calling setCategoryEnabled on each category individually, and also setting a default enabled value (for newly‐created categories). Hence, subsequent calls setCategoryEnabled will override this value for a particular category. Note that this operation is thread‐safe, but not atomic: Other threads may simultaneously access the current enabled status for registered categories while this operation completes. Also note that this operation has linear runtime performance with respect to the total number of category holders registered with this repository.
Parameters
Name |
Description |
value |
new enabled state for all categories |
Created with MrDocs