/frameworks/base/cmds/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 156 mCurrentBucketStartTimeNs = startTimeNs; in ValueMetricProducer() 157 mConditionTimer.newBucketStart(mCurrentBucketStartTimeNs); in ValueMetricProducer() 172 pullAndMatchEventsLocked(mCurrentBucketStartTimeNs, mCondition); in prepareFirstBucketLocked() 176 mCurrentBucketStartTimeNs); in prepareFirstBucketLocked() 371 bool isEventTooLate = eventTimeNs < mCurrentBucketStartTimeNs; in onActiveStateChangedLocked() 405 bool isEventTooLate = eventTimeNs < mCurrentBucketStartTimeNs; in onConditionChangedLocked() 410 (long long)mCurrentBucketStartTimeNs); in onConditionChangedLocked() 514 bool isEventLate = eventElapsedTimeNs < mCurrentBucketStartTimeNs; in accumulateEvents() 517 (long long)eventElapsedTimeNs, (long long)mCurrentBucketStartTimeNs); in accumulateEvents() 669 if (eventTimeNs < mCurrentBucketStartTimeNs) { in onMatchedLogEventInternalLocked() [all …]
|
D | GaugeMetricProducer.cpp | 141 mCurrentBucketStartTimeNs = startTimeNs; in GaugeMetricProducer() 310 pullAndMatchEventsLocked(mCurrentBucketStartTimeNs); in prepareFirstBucketLocked() 467 if (eventTimeNs < mCurrentBucketStartTimeNs) { in onMatchedLogEventInternalLocked() 469 (long long)mCurrentBucketStartTimeNs); in onMatchedLogEventInternalLocked() 544 (long long)eventTimeNs, (long long)(mCurrentBucketStartTimeNs + mBucketSizeNs)); in flushIfNeededLocked() 555 (long long)mCurrentBucketStartTimeNs); in flushIfNeededLocked() 563 info.mBucketStartNs = mCurrentBucketStartTimeNs; in flushCurrentBucketLocked() 570 if (info.mBucketEndNs - mCurrentBucketStartTimeNs >= mMinBucketSizeNs) { in flushCurrentBucketLocked() 597 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 | 81 mCurrentBucketStartTimeNs(timeBaseNs), in MetricProducer() 328 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()
|