Home
last modified time | relevance | path

Searched refs:pullDelayNs (Results 1 – 7 of 7) sorted by relevance

/packages/modules/StatsD/statsd/tests/external/
DStatsCallbackPuller_test.cpp56 int64_t pullDelayNs; variable
85 sleep_for(std::chrono::nanoseconds(pullDelayNs)); in executePull()
106 pullDelayNs = 0; in SetUp()
158 pullDelayNs = MillisToNano(5); // 5ms. in TEST_F()
175 EXPECT_GT(pullDelayNs, actualPullDurationNs); in TEST_F()
187 pullDelayNs = MillisToNano(50); // 50 ms. in TEST_F()
206 EXPECT_GT(pullDelayNs / 2, actualPullDurationNs); in TEST_F()
DStatsPuller_test.cpp46 long pullDelayNs; variable
56 sleep_for(std::chrono::nanoseconds(pullDelayNs)); in PullInternal()
82 pullDelayNs = 0; in SetUp()
152 pullDelayNs = MillisToNano(6); in TEST_F()
160 pullDelayNs = 0; in TEST_F()
182 pullDelayNs = MillisToNano(6); in TEST_F()
270 pullDelayNs = MillisToNano(6); in TEST_F()
281 pullDelayNs = 0; in TEST_F()
/packages/modules/StatsD/statsd/src/metrics/
DGaugeMetricProducer.cpp414 const int64_t pullDelayNs = getElapsedRealtimeNs() - timestampNs; in pullAndMatchEventsLocked() local
415 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in pullAndMatchEventsLocked()
416 if (pullDelayNs > mMaxPullDelayNs) { in pullAndMatchEventsLocked()
507 const int64_t pullDelayNs = getElapsedRealtimeNs() - originalPullTimeNs; in onDataPulled() local
508 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in onDataPulled()
509 if (pullDelayNs > mMaxPullDelayNs) { in onDataPulled()
DNumericValueMetricProducer.cpp255 const int64_t pullDelayNs = elapsedRealtimeNs - originalPullTimeNs; in accumulateEvents() local
256 StatsdStats::getInstance().notePullDelay(mPullAtomId, pullDelayNs); in accumulateEvents()
257 if (pullDelayNs > mMaxPullDelayNs) { in accumulateEvents()
/packages/modules/StatsD/statsd/tests/metrics/
DNumericValueMetricProducer_test.cpp6542 const int64_t pullDelayNs = 1 * NS_PER_SEC; // 1 sec in TEST() local
6566 allData.push_back(CreateRepeatedValueLogEvent(tagId, bucket2StartTimeNs + pullDelayNs, 10)); in TEST()
6568 bucket2StartTimeNs + pullDelayNs); in TEST()
6571 assertPastBucketValuesSingleKey(valueProducer->mPastBuckets, {5}, {bucketSizeNs}, {pullDelayNs}, in TEST()
6581 {bucketSizeNs, bucketSizeNs}, {pullDelayNs, -pullDelayNs}, in TEST()
6646 const int64_t pullDelayNs = 1 * NS_PER_SEC; // 1 sec in TEST() local
6672 valueProducer->onConditionChanged(false, bucket2StartTimeNs + pullDelayNs); in TEST()
6676 assertPastBucketValuesSingleKey(valueProducer->mPastBuckets, {5}, {bucketSizeNs}, {pullDelayNs}, in TEST()
6681 valueProducer->onConditionChanged(true, bucket2StartTimeNs + pullDelayNs + arbitraryIntervalNs); in TEST()
6684 false, bucket2StartTimeNs + pullDelayNs + arbitraryIntervalNs + conditionDurationNs); in TEST()
[all …]
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.h517 void notePullDelay(int pullAtomId, int64_t pullDelayNs);
DStatsdStats.cpp716 void StatsdStats::notePullDelay(int pullAtomId, int64_t pullDelayNs) { in notePullDelay() argument
719 pullStats.maxPullDelayNs = std::max(pullStats.maxPullDelayNs, pullDelayNs); in notePullDelay()
721 (pullStats.avgPullDelayNs * pullStats.numPullDelay + pullDelayNs) / in notePullDelay()