8#ifndef INCLUDED_BALM_INTEGERMETRIC
9#define INCLUDED_BALM_INTEGERMETRIC
224#include <balscm_version.h>
440 const char *category,
454 const char *category,
476 collectorRepository().getDefaultIntegerCollector(category, name)
495: d_collector_p(lookupCollector(category, name, manager))
497 d_isEnabled_p = (d_collector_p
504: d_collector_p(lookupCollector(metricId, manager))
506 d_isEnabled_p = (d_collector_p
512: d_collector_p(collector)
519: d_collector_p(original.d_collector_p)
520, d_isEnabled_p(original.d_isEnabled_p)
537 d_collector_p->
update(value);
555 return d_collector_p;
562 return d_collector_p;
574 return d_isEnabled_p && d_isEnabled_p->
loadRelaxed();
583 return lhs.collector() == rhs.collector();
589 return !(lhs == rhs);
Definition balm_category.h:257
const bsls::AtomicInt & isEnabledRaw() const
Definition balm_category.h:346
IntegerCollector * getDefaultIntegerCollector(const char *category, const char *metricName)
Definition balm_collectorrepository.h:444
Definition balm_integercollector.h:151
const MetricId & metricId() const
Definition balm_integercollector.h:319
void update(int value)
Definition balm_integercollector.h:282
void accumulateCountTotalMinMax(int count, int total, int min, int max)
Definition balm_integercollector.h:292
Definition balm_integermetric.h:258
bool isActive() const
Definition balm_integermetric.h:572
IntegerMetric(const char *category, const char *name, MetricsManager *manager=0)
Definition balm_integermetric.h:492
IntegerCollector * collector()
Definition balm_integermetric.h:553
MetricId metricId() const
Definition balm_integermetric.h:566
void increment()
Definition balm_integermetric.h:526
static IntegerCollector * lookupCollector(const char *category, const char *name, MetricsManager *manager=0)
Definition balm_integermetric.h:469
~IntegerMetric()=default
Destroy this object.
void update(int value)
Definition balm_integermetric.h:534
void accumulateCountTotalMinMax(int count, int total, int min, int max)
Definition balm_integermetric.h:542
Definition balm_metricid.h:162
const Category * category() const
Definition balm_metricid.h:319
Definition balm_metricsmanager.h:490
CollectorRepository & collectorRepository()
Definition balm_metricsmanager.h:1013
Definition bsls_atomic.h:743
int loadRelaxed() const
Definition bsls_atomic.h:1738
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition balm_bdlmmetricsadapter.h:141
bool operator==(const IntegerMetric &lhs, const IntegerMetric &rhs)
bool operator!=(const IntegerMetric &lhs, const IntegerMetric &rhs)
static MetricsManager * manager(MetricsManager *manager=0)
Definition balm_defaultmetricsmanager.h:302
Definition balm_integermetric.h:427
static void getCollector(IntegerCollector **collector, CategoryHolder *holder, const char *category, const char *metric, PublicationType::Value preferredPublicationType)
static void getCollector(IntegerCollector **collector, CategoryHolder *holder, const char *category, const char *metric)
Value
Definition balm_publicationtype.h:81