BloombergLP::balm::MetricSample::MetricSample

Create a metric sample containing the same value as the specified original sample. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. Note that copying the contained MetricSampleGroup objects copies only the pointers to their respective MetricRecord arrays, and does not copy the records themselves; hence, these record arrays must remain valid for the productive lifetimes of all copied objects or until the records are removed by calling removeAllRecords.

Synopsis

Declared in <balm_metricsample.h>

MetricSample(
    MetricSample const& original,
    bslma::Allocator* basicAllocator = 0);