/frameworks/base/cmds/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 161 mCurrentBucketStartTimeNs = startTimeNs; in ValueMetricProducer() 162 mConditionTimer.newBucketStart(mCurrentBucketStartTimeNs); in ValueMetricProducer() 177 pullAndMatchEventsLocked(mCurrentBucketStartTimeNs, mCondition); in prepareFirstBucketLocked() 181 mCurrentBucketStartTimeNs); in prepareFirstBucketLocked() 376 bool isEventTooLate = eventTimeNs < mCurrentBucketStartTimeNs; in onActiveStateChangedLocked() 410 bool isEventTooLate = eventTimeNs < mCurrentBucketStartTimeNs; in onConditionChangedLocked() 415 (long long)mCurrentBucketStartTimeNs); in onConditionChangedLocked() 519 bool isEventLate = eventElapsedTimeNs < mCurrentBucketStartTimeNs; in accumulateEvents() 522 (long long)eventElapsedTimeNs, (long long)mCurrentBucketStartTimeNs); in accumulateEvents() 674 if (eventTimeNs < mCurrentBucketStartTimeNs) { in onMatchedLogEventInternalLocked() [all …]
|
D | GaugeMetricProducer.cpp | 143 mCurrentBucketStartTimeNs = startTimeNs; in GaugeMetricProducer() 312 pullAndMatchEventsLocked(mCurrentBucketStartTimeNs); in prepareFirstBucketLocked() 469 if (eventTimeNs < mCurrentBucketStartTimeNs) { in onMatchedLogEventInternalLocked() 471 (long long)mCurrentBucketStartTimeNs); in onMatchedLogEventInternalLocked() 546 (long long)eventTimeNs, (long long)(mCurrentBucketStartTimeNs + mBucketSizeNs)); in flushIfNeededLocked() 557 (long long)mCurrentBucketStartTimeNs); in flushIfNeededLocked() 565 info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucketLocked() 572 if (info.mBucketEndNs - mCurrentBucketStartTimeNs >= mMinBucketSizeNs) { in flushCurrentBucketLocked() 599 mCurrentBucketStartTimeNs = nextBucketStartTimeNs; in flushCurrentBucketLocked()
|
D | CountMetricProducer.cpp | 107 mCurrentBucketStartTimeNs = startTimeNs; in CountMetricProducer() 329 (long long)mCurrentBucketStartTimeNs); in flushIfNeededLocked() 336 info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucketLocked() 379 mCurrentBucketStartTimeNs = nextBucketStartTimeNs; in flushCurrentBucketLocked()
|
D | MetricProducer.h | 83 mCurrentBucketStartTimeNs(timeBaseNs), in MetricProducer() 335 int64_t mCurrentBucketStartTimeNs; variable
|
D | DurationMetricProducer.cpp | 134 mCurrentBucketStartTimeNs = startTimeNs; in DurationMetricProducer() 167 mDimensionsInCondition, mNested, mCurrentBucketStartTimeNs, mCurrentBucketNum, in createDurationTracker() 173 mDimensionsInCondition, mNested, mCurrentBucketStartTimeNs, mCurrentBucketNum, in createDurationTracker() 633 mCurrentBucketStartTimeNs = nextBucketStartTimeNs; in flushCurrentBucketLocked()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | DurationMetricProducer_test.cpp | 54 EXPECT_EQ(600500000000, durationProducer.mCurrentBucketStartTimeNs); in TEST() 221 EXPECT_EQ(bucketStartTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 230 EXPECT_EQ(eventUpgradeTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 275 EXPECT_EQ(bucketStartTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 287 EXPECT_EQ(eventUpgradeTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 367 EXPECT_EQ(bucketStartTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 371 EXPECT_EQ(eventUpgradeTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 414 EXPECT_EQ(bucketStartTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 418 EXPECT_EQ(eventUpgradeTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 425 EXPECT_EQ(eventUpgradeTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST()
|
D | CountMetricProducer_test.cpp | 48 EXPECT_EQ(600500000000, countProducer.mCurrentBucketStartTimeNs); in TEST() 252 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST() 263 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST() 272 EXPECT_EQ(lastEndTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST() 306 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST()
|
D | GaugeMetricProducer_test.cpp | 85 EXPECT_EQ(600500000000, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 230 EXPECT_EQ(eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 242 EXPECT_EQ((int64_t)eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 255 EXPECT_EQ((int64_t)bucketStartTimeNs + bucketSizeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 324 EXPECT_EQ((int64_t)eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 391 EXPECT_EQ(bucketStartTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST()
|
D | ValueMetricProducer_test.cpp | 204 EXPECT_EQ(600500000000, valueProducer.mCurrentBucketStartTimeNs); in TEST() 684 EXPECT_EQ(bucketStartTimeNs + 150, valueProducer.mCurrentBucketStartTimeNs); in TEST() 692 EXPECT_EQ(bucketStartTimeNs + 150, valueProducer.mCurrentBucketStartTimeNs); in TEST() 701 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, valueProducer.mCurrentBucketStartTimeNs); in TEST() 746 EXPECT_EQ(bucket2StartTimeNs + 150, valueProducer.mCurrentBucketStartTimeNs); in TEST() 757 EXPECT_EQ(bucket3StartTimeNs, valueProducer.mCurrentBucketStartTimeNs); in TEST() 797 EXPECT_EQ(bucket2StartTimeNs, valueProducer.mCurrentBucketStartTimeNs); in TEST() 833 EXPECT_EQ(bucket2StartTimeNs-50, valueProducer->mCurrentBucketStartTimeNs); in TEST()
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.cpp | 164 current_info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucket() 198 mCurrentBucketStartTimeNs = fullBucketEnd + (numBucketsForward - 1) * mBucketSizeNs; in flushCurrentBucket() 201 mCurrentBucketStartTimeNs = eventTimeNs; in flushCurrentBucket() 203 mLastStartTime = mCurrentBucketStartTimeNs; in flushCurrentBucket()
|
D | DurationTracker.h | 75 mCurrentBucketStartTimeNs(currentBucketStartNs), in DurationTracker() 187 int64_t mCurrentBucketStartTimeNs; variable
|
D | MaxDurationTracker.cpp | 221 info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucket() 229 mCurrentBucketStartTimeNs = fullBucketEnd + (numBucketsForward - 1) * mBucketSizeNs; in flushCurrentBucket() 232 mCurrentBucketStartTimeNs = eventTimeNs; in flushCurrentBucket()
|