Searched refs:DimToValMap (Results 1 – 8 of 8) sorted by relevance
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 53 std::shared_ptr<DimToValMap> bucket) { in AddValueToBucket() 59 std::shared_ptr<DimToValMap> MockBucket( in MockBucket() 61 std::shared_ptr<DimToValMap> bucket = std::make_shared<DimToValMap>(); in MockBucket() 67 int64_t getBucketValue(const std::shared_ptr<DimToValMap>& bucket, in getBucketValue() 78 const std::shared_ptr<DimToValMap>& currentBucket, in detectAnomaliesPass() 96 const std::shared_ptr<DimToValMap>& bucket, int64_t eventTimestamp) { in detectAndDeclareAnomalies() 145 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST() 146 std::shared_ptr<DimToValMap> bucket1 = MockBucket({{keyA, 1}}); in TEST() 147 std::shared_ptr<DimToValMap> bucket2 = MockBucket({{keyB, 1}}); in TEST() 148 std::shared_ptr<DimToValMap> bucket3 = MockBucket({{keyA, 2}}); in TEST() [all …]
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | AnomalyTracker.h | 57 void addPastBucket(const std::shared_ptr<DimToValMap>& bucket, const int64_t bucketNum); 173 std::vector<shared_ptr<DimToValMap>> mPastBuckets; 177 DimToValMap mSumOverPastBuckets; 194 void addBucketToSum(const shared_ptr<DimToValMap>& bucket); 198 void subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket);
|
D | AnomalyTracker.cpp | 103 std::shared_ptr<DimToValMap>& bucket = mPastBuckets[bucketIndex]; in addPastBucket() 115 std::shared_ptr<DimToValMap> bucket = std::make_shared<DimToValMap>(); in addPastBucket() 121 void AnomalyTracker::addPastBucket(const std::shared_ptr<DimToValMap>& bucket, in addPastBucket() 140 void AnomalyTracker::subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket) { in subtractBucketFromSum() 161 void AnomalyTracker::addBucketToSum(const shared_ptr<DimToValMap>& bucket) { in addBucketToSum()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | CountMetricProducer.h | 126 std::shared_ptr<DimToValMap> mCurrentSlicedCounter = std::make_shared<DimToValMap>(); 130 std::shared_ptr<DimToValMap> mCurrentFullCounters = std::make_shared<DimToValMap>();
|
D | CountMetricProducer.cpp | 486 mCurrentFullCounters = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked() 504 mCurrentSlicedCounter = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
|
D | GaugeMetricProducer.h | 203 std::shared_ptr<DimToValMap> mCurrentSlicedBucketForAnomaly;
|
D | GaugeMetricProducer.cpp | 110 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); 708 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
|
/packages/modules/StatsD/statsd/src/ |
D | stats_util.h | 44 typedef std::unordered_map<MetricDimensionKey, int64_t> DimToValMap; typedef
|