Create an empty collector repository that will use the specified registry to identify the metrics for which it manages collectors.
Declared in <balm_collectorrepository.h>
CollectorRepository(
MetricRegistry* registry,
bslma::Allocator* basicAllocator = 0);
Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined if registry is 0.
| Name | Description |
|---|---|
| registry | metric registry used to identify managed metrics |
| basicAllocator | optional allocator to supply memory |