Searched refs:mBucketSizeNs (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.cpp | 151 numBucketsForward = 1 + (eventTimeNs - fullBucketEnd) / mBucketSizeNs; in flushCurrentBucket() 180 info.mBucketStartNs = fullBucketEnd + mBucketSizeNs * (i - 1); in flushCurrentBucket() 181 info.mBucketEndNs = info.mBucketStartNs + mBucketSizeNs; in flushCurrentBucket() 182 info.mDuration = mBucketSizeNs; in flushCurrentBucket() 198 mCurrentBucketStartTimeNs = fullBucketEnd + (numBucketsForward - 1) * mBucketSizeNs; in flushCurrentBucket() 377 const int64_t bucketEndNs = currentBucketEndNs + futureBucketIdx * mBucketSizeNs; in predictAnomalyTimestampNs() 379 std::max(bucketEndNs - mBucketSizeNs + thresholdNs - pastNs, refractoryPeriodEndNs); in predictAnomalyTimestampNs() 389 pastNs += mBucketSizeNs; in predictAnomalyTimestampNs()
|
D | DurationTracker.h | 72 mBucketSizeNs(bucketSizeNs), in DurationTracker() 121 return mStartTimeNs + (mCurrentBucketNum + 1) * mBucketSizeNs; in getCurrentBucketEndTimeNs() 167 return mStartTimeNs + (mCurrentBucketNum + 1) * mBucketSizeNs; in getCurrentBucketEndTimeNs() 181 const int64_t mBucketSizeNs; variable
|
D | MaxDurationTracker.cpp | 198 numBucketsForward = 1 + (eventTimeNs - fullBucketEnd) / mBucketSizeNs; in flushCurrentBucket() 229 mCurrentBucketStartTimeNs = fullBucketEnd + (numBucketsForward - 1) * mBucketSizeNs; in flushCurrentBucket()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | CountMetricProducer.cpp | 74 mBucketSizeNs = in CountMetricProducer() 77 mBucketSizeNs = LLONG_MAX; in CountMetricProducer() 110 (long long)mBucketSizeNs, (long long)mTimeBaseNs); in CountMetricProducer() 164 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked() 220 if (bucket.mBucketEndNs - bucket.mBucketStartNs != mBucketSizeNs) { in onDumpReportLocked() 323 int64_t numBucketsForward = 1 + (eventTimeNs - currentBucketEndTimeNs) / mBucketSizeNs; in flushIfNeededLocked() 324 int64_t nextBucketNs = currentBucketEndTimeNs + (numBucketsForward - 1) * mBucketSizeNs; in flushIfNeededLocked()
|
D | MetricProducer.h | 189 return mBucketSizeNs; in getBuckeSizeInNs() 194 mBucketSizeNs = bucketSize; in setBucketSize() 309 return mTimeBaseNs + (mCurrentBucketNum + 1) * mBucketSizeNs; in getCurrentBucketEndTimeNs() 313 return (endNs - mTimeBaseNs) / mBucketSizeNs - 1; in getBucketNumFromEndTimeNs() 334 int64_t mBucketSizeNs; variable
|
D | DurationMetricProducer.cpp | 81 mBucketSizeNs = in DurationMetricProducer() 84 mBucketSizeNs = LLONG_MAX; in DurationMetricProducer() 136 (long long)mBucketSizeNs, (long long)mTimeBaseNs); in DurationMetricProducer() 147 if (alert.trigger_if_sum_gt() > alert.num_buckets() * mBucketSizeNs) { in addAnomalyTracker() 149 alert.trigger_if_sum_gt(), alert.num_buckets(), (long long)mBucketSizeNs); in addAnomalyTracker() 168 mTimeBaseNs, mBucketSizeNs, mConditionSliced, in createDurationTracker() 174 mTimeBaseNs, mBucketSizeNs, mConditionSliced, in createDurationTracker() 520 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked() 575 if (bucket.mBucketEndNs - bucket.mBucketStartNs != mBucketSizeNs) { in onDumpReportLocked() 606 int numBucketsForward = 1 + (eventTimeNs - currentBucketEndTimeNs) / mBucketSizeNs; in flushIfNeededLocked() [all …]
|
D | GaugeMetricProducer.cpp | 104 mBucketSizeNs = bucketSizeMills * 1000000; in GaugeMetricProducer() 137 mBucketSizeNs); in GaugeMetricProducer() 144 (long long)metric.id(), (long long)mBucketSizeNs, (long long)mTimeBaseNs, in GaugeMetricProducer() 200 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked() 266 if (bucket.mBucketEndNs - bucket.mBucketStartNs != mBucketSizeNs) { in onDumpReportLocked() 544 (long long)eventTimeNs, (long long)(mCurrentBucketStartTimeNs + mBucketSizeNs)); in flushIfNeededLocked() 549 int64_t numBucketsForward = 1 + (eventTimeNs - currentBucketEndTimeNs) / mBucketSizeNs; in flushIfNeededLocked() 550 int64_t nextBucketNs = currentBucketEndTimeNs + (numBucketsForward - 1) * mBucketSizeNs; in flushIfNeededLocked()
|
D | ValueMetricProducer.cpp | 116 mBucketSizeNs = bucketSizeMills * 1000000; in ValueMetricProducer() 150 mBucketSizeNs); in ValueMetricProducer() 159 (long long)mBucketSizeNs, (long long)mTimeBaseNs); in ValueMetricProducer() 232 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked() 295 if (bucket.mBucketEndNs - bucket.mBucketStartNs != mBucketSizeNs) { in onDumpReportLocked() 469 return mTimeBaseNs + ((currentTimeNs - mTimeBaseNs) / mBucketSizeNs) * mBucketSizeNs; in calcPreviousBucketEndTime() 831 … int64_t nextBucketStartTimeNs = currentBucketEndTimeNs + (numBucketsForward - 1) * mBucketSizeNs; in flushIfNeededLocked() 840 return 1 + (eventTimeNs - currentBucketEndTimeNs) / mBucketSizeNs; in calcBucketsForwardCount()
|
D | EventMetricProducer.cpp | 71 (long long)mBucketSizeNs, (long long)mTimeBaseNs); in EventMetricProducer()
|