Home
last modified time | relevance | path

Searched refs:mCurrentSlicedBucket (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/cmds/statsd/tests/metrics/
DValueMetricProducer_test.cpp84 EXPECT_EQ(1UL, valueProducer.mCurrentSlicedBucket.size()); in TEST()
85 ValueMetricProducer::Interval curInterval = valueProducer.mCurrentSlicedBucket.begin()->second; in TEST()
103 EXPECT_EQ(1UL, valueProducer.mCurrentSlicedBucket.size()); in TEST()
104 curInterval = valueProducer.mCurrentSlicedBucket.begin()->second; in TEST()
120 EXPECT_EQ(1UL, valueProducer.mCurrentSlicedBucket.size()); in TEST()
121 curInterval = valueProducer.mCurrentSlicedBucket.begin()->second; in TEST()
162 EXPECT_EQ(1UL, valueProducer.mCurrentSlicedBucket.size()); in TEST()
163 ValueMetricProducer::Interval curInterval = valueProducer.mCurrentSlicedBucket.begin()->second; in TEST()
180 EXPECT_EQ(1UL, valueProducer.mCurrentSlicedBucket.size()); in TEST()
181 curInterval = valueProducer.mCurrentSlicedBucket.begin()->second; in TEST()
[all …]
DGaugeMetricProducer_test.cpp83 EXPECT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
84 auto it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST()
100 EXPECT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
101 it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST()
118 EXPECT_EQ(0UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
158 EXPECT_EQ(1UL, (*gaugeProducer.mCurrentSlicedBucket).count(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
161 EXPECT_EQ(0UL, (*gaugeProducer.mCurrentSlicedBucket).count(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
241 EXPECT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
242 EXPECT_EQ(1, gaugeProducer.mCurrentSlicedBucket->begin() in TEST()
251 EXPECT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DGaugeMetricProducer.cpp89 mCurrentSlicedBucket = std::make_shared<DimToGaugeAtomsMap>(); in GaugeMetricProducer()
156 if (mCurrentSlicedBucket == nullptr || in dumpStatesLocked()
157 mCurrentSlicedBucket->size() == 0) { in dumpStatesLocked()
162 (unsigned long)mCurrentSlicedBucket->size()); in dumpStatesLocked()
164 for (const auto& it : *mCurrentSlicedBucket) { in dumpStatesLocked()
320 triggerPuller = mCondition && mCurrentSlicedBucket->empty(); in pullLocked()
394 if (mCurrentSlicedBucket->find(newKey) != mCurrentSlicedBucket->end()) { in hitGuardRailLocked()
398 if (mCurrentSlicedBucket->size() > mDimensionSoftLimit - 1) { in hitGuardRailLocked()
399 size_t newTupleCount = mCurrentSlicedBucket->size() + 1; in hitGuardRailLocked()
430 if (mCurrentSlicedBucket->find(eventKey) != mCurrentSlicedBucket->end() && in onMatchedLogEventInternalLocked()
[all …]
DValueMetricProducer.cpp326 if (mCurrentSlicedBucket.size() == 0) { in dumpStatesLocked()
331 (unsigned long)mCurrentSlicedBucket.size()); in dumpStatesLocked()
333 for (const auto& it : mCurrentSlicedBucket) { in dumpStatesLocked()
345 if (mCurrentSlicedBucket.find(newKey) != mCurrentSlicedBucket.end()) { in hitGuardRailLocked()
348 if (mCurrentSlicedBucket.size() > mDimensionSoftLimit - 1) { in hitGuardRailLocked()
349 size_t newTupleCount = mCurrentSlicedBucket.size() + 1; in hitGuardRailLocked()
378 Interval& interval = mCurrentSlicedBucket[eventKey]; in onMatchedLogEventInternalLocked()
458 (int)mCurrentSlicedBucket.size()); in flushCurrentBucketLocked()
472 for (const auto& slice : mCurrentSlicedBucket) { in flushCurrentBucketLocked()
490 for (const auto& slice : mCurrentSlicedBucket) { in flushCurrentBucketLocked()
[all …]
DGaugeMetricProducer.h135 std::shared_ptr<DimToGaugeAtomsMap> mCurrentSlicedBucket; variable
DValueMetricProducer.h147 std::unordered_map<MetricDimensionKey, Interval> mCurrentSlicedBucket; variable