BloombergLP::balm::MetricsManager::collectSample

Same as the preceding overload, collecting from the specified categories sequence.

Synopsis

Declared in <balm_metricsmanager.h>

void
collectSample(
    MetricSample* sample,
    bsl::vector<MetricRecord>* records,
    Category const const* categories[],
    int numCategories,
    bool resetFlag = false);

Parameters

NameDescription
samplereceives the collected metric sample
recordsreceives the metric records referred to by sample
categoriessequence of unique categories to sample
numCategoriesnumber of categories in categories
resetFlagif true, reset collected metrics to defaults