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.cpp239 EXPECT_EQ(1UL, valueProducer->mCurrentSlicedBucket.size()); in TEST()
240 …ValueMetricProducer::Interval curInterval = valueProducer->mCurrentSlicedBucket.begin()->second[0]; in TEST()
258 EXPECT_EQ(1UL, valueProducer->mCurrentSlicedBucket.size()); in TEST()
259 curInterval = valueProducer->mCurrentSlicedBucket.begin()->second[0]; in TEST()
279 EXPECT_EQ(1UL, valueProducer->mCurrentSlicedBucket.size()); in TEST()
280 curInterval = valueProducer->mCurrentSlicedBucket.begin()->second[0]; in TEST()
396 EXPECT_EQ(1UL, valueProducer->mCurrentSlicedBucket.size()); in TEST()
398 valueProducer->mCurrentSlicedBucket.begin()->second[0]; in TEST()
416 EXPECT_EQ(0UL, valueProducer->mCurrentSlicedBucket.size()); in TEST()
433 EXPECT_EQ(1UL, valueProducer->mCurrentSlicedBucket.size()); in TEST()
[all …]
DGaugeMetricProducer_test.cpp141 EXPECT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
142 auto it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST()
159 EXPECT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
160 it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST()
177 EXPECT_EQ(0UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
224 EXPECT_EQ(1UL, (*gaugeProducer.mCurrentSlicedBucket).count(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
227 EXPECT_EQ(0UL, (*gaugeProducer.mCurrentSlicedBucket).count(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
315 EXPECT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
316 EXPECT_EQ(1, gaugeProducer.mCurrentSlicedBucket->begin() in TEST()
325 EXPECT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DGaugeMetricProducer.cpp96 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 == ConditionState::kTrue && mCurrentSlicedBucket->empty(); in pullAndMatchEventsLocked()
441 if (mCurrentSlicedBucket->find(newKey) != mCurrentSlicedBucket->end()) { in hitGuardRailLocked()
445 if (mCurrentSlicedBucket->size() > mDimensionSoftLimit - 1) { in hitGuardRailLocked()
446 size_t newTupleCount = mCurrentSlicedBucket->size() + 1; in hitGuardRailLocked()
481 if (mCurrentSlicedBucket->find(eventKey) != mCurrentSlicedBucket->end() && in onMatchedLogEventInternalLocked()
[all …]
DValueMetricProducer.cpp358 for (auto& slice : mCurrentSlicedBucket) { in resetBase()
551 for (auto& slice : mCurrentSlicedBucket) { in accumulateEvents()
571 mCurrentSlicedBucket.clear(); in accumulateEvents()
576 if (mCurrentSlicedBucket.size() == 0) { in dumpStatesLocked()
581 (unsigned long)mCurrentSlicedBucket.size()); in dumpStatesLocked()
583 for (const auto& it : mCurrentSlicedBucket) { in dumpStatesLocked()
595 return mCurrentSlicedBucket.size() >= mDimensionHardLimit; in hasReachedGuardRailLimit()
601 if (mCurrentSlicedBucket.find(newKey) != mCurrentSlicedBucket.end()) { in hitGuardRailLocked()
604 if (mCurrentSlicedBucket.size() > mDimensionSoftLimit - 1) { in hitGuardRailLocked()
605 size_t newTupleCount = mCurrentSlicedBucket.size() + 1; in hitGuardRailLocked()
[all …]
DGaugeMetricProducer.h153 std::shared_ptr<DimToGaugeAtomsMap> mCurrentSlicedBucket; variable
DValueMetricProducer.h168 std::unordered_map<MetricDimensionKey, std::vector<Interval>> mCurrentSlicedBucket; variable