BloombergLP::balm::CollectorRepository::CollectorRepository

Create an empty collector repository that will use the specified registry to identify the metrics for which it manages collectors.

Synopsis

Declared in <balm_collectorrepository.h>

CollectorRepository(
    MetricRegistry* registry,
    bslma::Allocator* basicAllocator = 0);

Description

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.

Parameters

NameDescription
registrymetric registry used to identify managed metrics
basicAllocatoroptional allocator to supply memory