Home
last modified time | relevance | path

Searched refs:mCurrentFullBucket (Results 1 – 3 of 3) sorted by relevance

/packages/modules/StatsD/statsd/src/metrics/
DNumericValueMetricProducer.cpp353 if (mCurrentFullBucket.find(newKey) != mCurrentFullBucket.end()) { in hitFullBucketGuardRailLocked()
356 if (mCurrentFullBucket.size() > mDimensionSoftLimit - 1) { in hitFullBucketGuardRailLocked()
357 size_t newTupleCount = mCurrentFullBucket.size() + 1; in hitFullBucketGuardRailLocked()
511 auto prev = mCurrentFullBucket.find(eventKey); in aggregateFields()
512 if (prev != mCurrentFullBucket.end()) { in aggregateFields()
575 mCurrentFullBucket.clear(); in appendToFullBucket()
583 if (mCurrentFullBucket.size() > 0) { in appendToFullBucket()
592 mCurrentFullBucket[metricDimensionKey] += interval.aggregate.long_value; in appendToFullBucket()
595 for (const auto& [metricDimensionKey, value] : mCurrentFullBucket) { in appendToFullBucket()
602 mCurrentFullBucket.clear(); in appendToFullBucket()
[all …]
DNumericValueMetricProducer.h194 std::unordered_map<MetricDimensionKey, int64_t> mCurrentFullBucket; variable
/packages/modules/StatsD/statsd/tests/metrics/
DNumericValueMetricProducer_test.cpp2692 ASSERT_EQ(0UL, valueProducer->mCurrentFullBucket.size()); in TEST_P()
2707 ASSERT_EQ(1UL, valueProducer->mCurrentFullBucket.size()); in TEST_P()
2722 ASSERT_EQ(0UL, valueProducer->mCurrentFullBucket.size()); in TEST_P()