/packages/modules/StatsD/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 387 (long long)(NanoToMillis(skippedBucket.bucketEndTimeNs))); in onDumpReportLocked() 808 int64_t bucketEndTimeNs = fullBucketEndTimeNs; in closeCurrentBucket() local 819 bucketEndTimeNs = nextBucketStartTimeNs; in closeCurrentBucket() 821 bucketEndTimeNs = eventTimeNs; in closeCurrentBucket() 826 mConditionTimer.newBucketStart(eventTimeNs, bucketEndTimeNs); in closeCurrentBucket() 828 bool isBucketLargeEnough = bucketEndTimeNs - mCurrentBucketStartTimeNs >= mMinBucketSizeNs; in closeCurrentBucket() 837 buildPartialBucket(bucketEndTimeNs, currentBucket.intervals); in closeCurrentBucket() 844 currentBucket.conditionTimer.newBucketStart(eventTimeNs, bucketEndTimeNs); in closeCurrentBucket() 865 mCurrentSkippedBucket.bucketEndTimeNs = bucketEndTimeNs; in closeCurrentBucket() 874 if (bucketEndTimeNs < nextBucketStartTimeNs) { in closeCurrentBucket() [all …]
|
D | NumericValueMetricProducer.cpp | 212 int64_t bucketEndTimeNs = calcPreviousBucketEndTime(originalPullTimeNs) - 1; in onDataPulled() local 214 mMetricId, originalPullTimeNs - bucketEndTimeNs); in onDataPulled() 215 accumulateEvents(allData, originalPullTimeNs, bucketEndTimeNs); in onDataPulled() 523 PastBucket<Value> NumericValueMetricProducer::buildPartialBucket(int64_t bucketEndTimeNs, in buildPartialBucket() argument 527 bucket.mBucketEndNs = bucketEndTimeNs; in buildPartialBucket()
|
D | KllMetricProducer.cpp | 141 int64_t bucketEndTimeNs, vector<Interval>& intervals) { in buildPartialBucket() argument 144 bucket.mBucketEndNs = bucketEndTimeNs; in buildPartialBucket()
|
D | MetricProducer.h | 103 int64_t bucketEndTimeNs; member 109 bucketEndTimeNs = 0; in reset()
|
D | GaugeMetricProducer.cpp | 299 (long long)(NanoToMillis(skippedBucket.bucketEndTimeNs))); in onDumpReportLocked() 690 mCurrentSkippedBucket.bucketEndTimeNs = bucketEndTime; in flushCurrentBucketLocked()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 63 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 100 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 136 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 176 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 218 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 260 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 317 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 405 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 483 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 504 tracker.flushIfNeeded(bucketEndTimeNs + 1, emptyThreshold, &buckets); in TEST()
|
D | OringDurationTracker_test.cpp | 645 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local 671 tracker.flushIfNeeded(bucketEndTimeNs + 1, emptyThreshold, &buckets); in TEST() 690 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() local
|
D | NumericValueMetricProducer_test.cpp | 1154 EXPECT_EQ(bucket2StartTimeNs, valueProducer->mSkippedBuckets[0].bucketEndTimeNs); in TEST() 1160 EXPECT_EQ(bucket6StartTimeNs, valueProducer->mSkippedBuckets[1].bucketEndTimeNs); in TEST() 2721 EXPECT_EQ(bucket3StartTimeNs, valueProducer->mSkippedBuckets[0].bucketEndTimeNs); in TEST_P()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ConfigUpdate_e2e_test.cpp | 741 uint64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST_F() local 824 ValidateDurationBucket(data.bucket_info(0), updateTimeNs, bucketEndTimeNs, 21 * NS_PER_SEC, in TEST_F() 836 ValidateDurationBucket(data.bucket_info(0), updateTimeNs, bucketEndTimeNs, in TEST_F() 837 bucketEndTimeNs - updateTimeNs); in TEST_F() 838 ValidateDurationBucket(data.bucket_info(1), bucketEndTimeNs, dumpTimeNs, in TEST_F() 839 dumpTimeNs - bucketEndTimeNs); in TEST_F() 853 ValidateDurationBucket(data.bucket_info(0), bucketEndTimeNs, dumpTimeNs, 48 * NS_PER_SEC); in TEST_F() 859 ValidateDurationBucket(data.bucket_info(0), updateTimeNs, bucketEndTimeNs, 25 * NS_PER_SEC); in TEST_F() 875 ValidateDurationBucket(data.bucket_info(0), updateTimeNs, bucketEndTimeNs, 15 * NS_PER_SEC); in TEST_F() 883 ValidateDurationBucket(data.bucket_info(0), updateTimeNs, bucketEndTimeNs, in TEST_F() [all …]
|