Searched refs:mCurrentSlicedBucket (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/cmds/statsd/tests/metrics/ |
D | ValueMetricProducer_test.cpp | 239 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 …]
|
D | GaugeMetricProducer_test.cpp | 141 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/ |
D | GaugeMetricProducer.cpp | 98 mCurrentSlicedBucket = std::make_shared<DimToGaugeAtomsMap>(); in GaugeMetricProducer() 158 if (mCurrentSlicedBucket == nullptr || in dumpStatesLocked() 159 mCurrentSlicedBucket->size() == 0) { in dumpStatesLocked() 164 (unsigned long)mCurrentSlicedBucket->size()); in dumpStatesLocked() 166 for (const auto& it : *mCurrentSlicedBucket) { in dumpStatesLocked() 322 triggerPuller = mCondition == ConditionState::kTrue && mCurrentSlicedBucket->empty(); in pullAndMatchEventsLocked() 443 if (mCurrentSlicedBucket->find(newKey) != mCurrentSlicedBucket->end()) { in hitGuardRailLocked() 447 if (mCurrentSlicedBucket->size() > mDimensionSoftLimit - 1) { in hitGuardRailLocked() 448 size_t newTupleCount = mCurrentSlicedBucket->size() + 1; in hitGuardRailLocked() 483 if (mCurrentSlicedBucket->find(eventKey) != mCurrentSlicedBucket->end() && in onMatchedLogEventInternalLocked() [all …]
|
D | ValueMetricProducer.cpp | 363 for (auto& slice : mCurrentSlicedBucket) { in resetBase() 556 for (auto& slice : mCurrentSlicedBucket) { in accumulateEvents() 576 mCurrentSlicedBucket.clear(); in accumulateEvents() 581 if (mCurrentSlicedBucket.size() == 0) { in dumpStatesLocked() 586 (unsigned long)mCurrentSlicedBucket.size()); in dumpStatesLocked() 588 for (const auto& it : mCurrentSlicedBucket) { in dumpStatesLocked() 600 return mCurrentSlicedBucket.size() >= mDimensionHardLimit; in hasReachedGuardRailLimit() 606 if (mCurrentSlicedBucket.find(newKey) != mCurrentSlicedBucket.end()) { in hitGuardRailLocked() 609 if (mCurrentSlicedBucket.size() > mDimensionSoftLimit - 1) { in hitGuardRailLocked() 610 size_t newTupleCount = mCurrentSlicedBucket.size() + 1; in hitGuardRailLocked() [all …]
|
D | GaugeMetricProducer.h | 153 std::shared_ptr<DimToGaugeAtomsMap> mCurrentSlicedBucket; variable
|
D | ValueMetricProducer.h | 170 std::unordered_map<MetricDimensionKey, std::vector<Interval>> mCurrentSlicedBucket; variable
|