Searched refs:DimToValMap (Results 1 – 8 of 8) sorted by relevance
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 47 std::shared_ptr<DimToValMap> bucket) { in AddValueToBucket() 53 std::shared_ptr<DimToValMap> MockBucket( in MockBucket() 55 std::shared_ptr<DimToValMap> bucket = std::make_shared<DimToValMap>(); in MockBucket() 61 int64_t getBucketValue(const std::shared_ptr<DimToValMap>& bucket, in getBucketValue() 73 const std::shared_ptr<DimToValMap>& currentBucket, in detectAnomaliesPass() 92 const std::shared_ptr<DimToValMap>& bucket, in detectAndDeclareAnomalies() 143 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST() 144 std::shared_ptr<DimToValMap> bucket1 = MockBucket({{keyA, 1}}); in TEST() 145 std::shared_ptr<DimToValMap> bucket2 = MockBucket({{keyB, 1}}); in TEST() 146 std::shared_ptr<DimToValMap> bucket3 = MockBucket({{keyA, 2}}); in TEST() [all …]
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | AnomalyTracker.h | 56 void addPastBucket(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 | 104 std::shared_ptr<DimToValMap>& bucket = mPastBuckets[bucketIndex]; in addPastBucket() 116 std::shared_ptr<DimToValMap> bucket = std::make_shared<DimToValMap>(); in addPastBucket() 122 void AnomalyTracker::addPastBucket(std::shared_ptr<DimToValMap> bucket, in addPastBucket() 141 void AnomalyTracker::subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket) { in subtractBucketFromSum() 163 void AnomalyTracker::addBucketToSum(const shared_ptr<DimToValMap>& bucket) { in addBucketToSum()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | CountMetricProducer.h | 119 std::shared_ptr<DimToValMap> mCurrentSlicedCounter = std::make_shared<DimToValMap>(); 123 std::shared_ptr<DimToValMap> mCurrentFullCounters = std::make_shared<DimToValMap>();
|
D | CountMetricProducer.cpp | 431 mCurrentFullCounters = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked() 448 mCurrentSlicedCounter = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
|
D | GaugeMetricProducer.cpp | 106 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); 654 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
|
D | GaugeMetricProducer.h | 186 std::shared_ptr<DimToValMap> mCurrentSlicedBucketForAnomaly;
|
/packages/modules/StatsD/statsd/src/ |
D | stats_util.h | 42 typedef std::unordered_map<MetricDimensionKey, int64_t> DimToValMap; typedef
|