/packages/modules/StatsD/statsd/src/metrics/ |
D | GaugeMetricProducer.cpp | 148 mCurrentBucketStartTimeNs = startTimeNs; 221 pullAndMatchEventsLocked(mCurrentBucketStartTimeNs); in onConfigUpdatedLocked() 384 pullAndMatchEventsLocked(mCurrentBucketStartTimeNs); in prepareFirstBucketLocked() 562 if (eventTimeNs < mCurrentBucketStartTimeNs) { in onMatchedLogEventInternalLocked() 564 (long long)mCurrentBucketStartTimeNs); in onMatchedLogEventInternalLocked() 645 (long long)eventTimeNs, (long long)(mCurrentBucketStartTimeNs + mBucketSizeNs)); in flushIfNeededLocked() 656 (long long)mCurrentBucketStartTimeNs); in flushIfNeededLocked() 665 info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucketLocked() 670 bool isBucketLargeEnough = info.mBucketEndNs - mCurrentBucketStartTimeNs >= mMinBucketSizeNs; in flushCurrentBucketLocked() 689 mCurrentSkippedBucket.bucketStartTimeNs = mCurrentBucketStartTimeNs; in flushCurrentBucketLocked() [all …]
|
D | ValueMetricProducer.cpp | 142 mCurrentBucketStartTimeNs = bucketOptions.startTimeNs; in ValueMetricProducer() 143 mConditionTimer.newBucketStart(mCurrentBucketStartTimeNs, mCurrentBucketStartTimeNs); in ValueMetricProducer() 147 mCurrentBucketStartTimeNs); in ValueMetricProducer() 281 (long long)mCurrentBucketStartTimeNs); in onStateChanged() 559 (long long)mCurrentBucketStartTimeNs); in onConditionChangedLocked() 695 (long long)mCurrentBucketStartTimeNs); in onMatchedLogEventInternalLocked() 785 VLOG("finalizing bucket for %ld, dumping %d slices", (long)mCurrentBucketStartTimeNs, in flushCurrentBucketLocked() 828 bool isBucketLargeEnough = bucketEndTimeNs - mCurrentBucketStartTimeNs >= mMinBucketSizeNs; in closeCurrentBucket() 864 mCurrentSkippedBucket.bucketStartTimeNs = mCurrentBucketStartTimeNs; in closeCurrentBucket() 924 mCurrentBucketStartTimeNs = nextBucketStartTimeNs; in initNextSlicedBucket() [all …]
|
D | CountMetricProducer.cpp | 127 mCurrentBucketStartTimeNs = startTimeNs; in CountMetricProducer() 128 mConditionTimer.newBucketStart(mCurrentBucketStartTimeNs, mCurrentBucketStartTimeNs); in CountMetricProducer() 130 mCurrentBucketStartTimeNs); in CountMetricProducer() 423 (long long)mCurrentBucketStartTimeNs); in flushIfNeededLocked() 450 info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucketLocked() 505 mCurrentBucketStartTimeNs = nextBucketStartTimeNs; in flushCurrentBucketLocked()
|
D | DurationMetricProducer.cpp | 167 mCurrentBucketStartTimeNs = startTimeNs; in DurationMetricProducer() 172 mConditionTimer.newBucketStart(mCurrentBucketStartTimeNs, mCurrentBucketStartTimeNs); in DurationMetricProducer() 174 mCurrentBucketStartTimeNs); in DurationMetricProducer() 355 mCurrentBucketStartTimeNs, mCurrentBucketNum, mTimeBaseNs, mBucketSizeNs, in createDurationTracker() 360 mCurrentBucketStartTimeNs, mCurrentBucketNum, mTimeBaseNs, mBucketSizeNs, in createDurationTracker() 643 mCurrentBucketStartTimeNs = nextBucketStartTimeNs; in flushCurrentBucketLocked()
|
D | NumericValueMetricProducer.cpp | 167 pullAndMatchEventsLocked(mCurrentBucketStartTimeNs); in prepareFirstBucketLocked() 248 (long long)eventElapsedTimeNs, (long long)mCurrentBucketStartTimeNs); in accumulateEvents() 526 bucket.mBucketStartNs = mCurrentBucketStartTimeNs; in buildPartialBucket()
|
D | KllMetricProducer.cpp | 143 bucket.mBucketStartNs = mCurrentBucketStartTimeNs; in buildPartialBucket()
|
D | ValueMetricProducer.h | 369 return eventTimeNs < mCurrentBucketStartTimeNs; in isEventLateLocked()
|
D | MetricProducer.cpp | 62 mCurrentBucketStartTimeNs(timeBaseNs), in MetricProducer()
|
D | MetricProducer.h | 526 int64_t mCurrentBucketStartTimeNs; variable
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | DurationMetricProducer_test.cpp | 81 EXPECT_EQ(600500000000, durationProducer.mCurrentBucketStartTimeNs); in TEST() 267 EXPECT_EQ(bucketStartTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() 284 EXPECT_EQ(partialBucketSplitTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() 332 EXPECT_EQ(bucketStartTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() 352 EXPECT_EQ(partialBucketSplitTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() 447 EXPECT_EQ(bucketStartTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() 459 EXPECT_EQ(partialBucketSplitTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() 503 EXPECT_EQ(bucketStartTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() 515 EXPECT_EQ(partialBucketSplitTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() 524 EXPECT_EQ(partialBucketSplitTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST_P() [all …]
|
D | CountMetricProducer_test.cpp | 82 EXPECT_EQ(600500000000, countProducer.mCurrentBucketStartTimeNs); in TEST() 307 EXPECT_EQ(eventTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST_P() 317 EXPECT_EQ(eventTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST_P() 326 EXPECT_EQ(lastEndTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST_P() 371 EXPECT_EQ(eventTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST_P() 427 EXPECT_EQ(bucketStartTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST() 437 EXPECT_EQ(bucketStartTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST() 451 EXPECT_EQ(bucketStartTimeNs + 60 * NS_PER_SEC, countProducer.mCurrentBucketStartTimeNs); in TEST() 547 EXPECT_EQ(fiveWeeksNs, countProducer.mCurrentBucketStartTimeNs); in TEST()
|
D | KllMetricProducer_test.cpp | 199 EXPECT_EQ(partialBucketSplitTimeNs, kllProducer->mCurrentBucketStartTimeNs); in TEST_P() 210 EXPECT_EQ(partialBucketSplitTimeNs, kllProducer->mCurrentBucketStartTimeNs); in TEST_P() 222 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, kllProducer->mCurrentBucketStartTimeNs); in TEST_P()
|
D | GaugeMetricProducer_test.cpp | 111 EXPECT_EQ(600500000000, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 266 EXPECT_EQ(partialBucketSplitTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST_P() 280 EXPECT_EQ((int64_t)partialBucketSplitTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST_P() 291 EXPECT_EQ((int64_t)bucketStartTimeNs + bucketSizeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST_P() 362 EXPECT_EQ(partialBucketSplitTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST_P() 422 EXPECT_EQ(bucketStartTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST()
|
D | NumericValueMetricProducer_test.cpp | 290 EXPECT_EQ(600500000000, valueProducer->mCurrentBucketStartTimeNs); in TEST() 404 EXPECT_EQ(partialBucketSplitTimeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST_P() 690 EXPECT_EQ(partialBucketSplitTimeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST_P() 701 EXPECT_EQ(partialBucketSplitTimeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST_P() 714 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST_P() 756 EXPECT_EQ(partialBucketSplitTimeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST_P() 764 EXPECT_EQ(bucket3StartTimeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST_P() 797 EXPECT_EQ(bucket2StartTimeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST() 839 EXPECT_EQ(partialBucketSplitTimeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST_P() 2702 EXPECT_EQ(partialBucketSplitTimeNs, valueProducer->mCurrentBucketStartTimeNs); in TEST_P()
|
/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.cpp | 180 current_info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucket() 225 mCurrentBucketStartTimeNs = fullBucketEnd + (numBucketsForward - 1) * mBucketSizeNs; in flushCurrentBucket() 228 mCurrentBucketStartTimeNs = eventTimeNs; in flushCurrentBucket() 230 mLastStartTime = mCurrentBucketStartTimeNs; in flushCurrentBucket()
|
D | MaxDurationTracker.cpp | 211 info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucket() 222 mCurrentBucketStartTimeNs = fullBucketEnd + (numBucketsForward - 1) * mBucketSizeNs; in flushCurrentBucket() 225 mCurrentBucketStartTimeNs = eventTimeNs; in flushCurrentBucket()
|
D | DurationTracker.h | 88 mCurrentBucketStartTimeNs(currentBucketStartNs), in DurationTracker() 256 int64_t mCurrentBucketStartTimeNs; variable
|