Return a collector for the specified metricId.
Synopsis
Declared in <balm_metric.h>
static
Collector*
lookupCollector(
MetricId const& metricId,
MetricsManager* manager = 0);
Description
Optionally specify a metrics manager used to provide the collector. If manager is 0, use the default metrics manager, if initialized; if manager is 0 and the default metrics manager has not been initialized, return 0. The behavior is undefined unless metricId is a valid metric id supplied by the MetricsRegistry of the indicated metrics manager.
Return Value
collector for metricId, or 0 if none is available
Parameters
Name |
Description |
metricId |
identity of the metric to look up |
manager |
metrics manager used to provide the collector (optional) |
Created with MrDocs