Searched refs:pullDelayNs (Results 1 – 7 of 7) sorted by relevance
/packages/modules/StatsD/statsd/tests/external/ |
D | StatsCallbackPuller_test.cpp | 56 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(5); // 5 ms. in TEST_F() 206 EXPECT_GT(pullDelayNs / 5, actualPullDurationNs); in TEST_F()
|
D | StatsPuller_test.cpp | 46 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/ |
D | GaugeMetricProducer.cpp | 392 const int64_t pullDelayNs = getElapsedRealtimeNs() - timestampNs; in pullAndMatchEventsLocked() local 393 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in pullAndMatchEventsLocked() 394 if (pullDelayNs > mMaxPullDelayNs) { in pullAndMatchEventsLocked() 480 const int64_t pullDelayNs = getElapsedRealtimeNs() - originalPullTimeNs; in onDataPulled() local 481 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in onDataPulled() 482 if (pullDelayNs > mMaxPullDelayNs) { in onDataPulled()
|
D | NumericValueMetricProducer.cpp | 243 const int64_t pullDelayNs = elapsedRealtimeNs - originalPullTimeNs; in accumulateEvents() local 244 StatsdStats::getInstance().notePullDelay(mPullAtomId, pullDelayNs); in accumulateEvents() 245 if (pullDelayNs > mMaxPullDelayNs) { in accumulateEvents()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | NumericValueMetricProducer_test.cpp | 6541 const int64_t pullDelayNs = 1 * NS_PER_SEC; // 1 sec in TEST() local 6565 allData.push_back(CreateRepeatedValueLogEvent(tagId, bucket2StartTimeNs + pullDelayNs, 10)); in TEST() 6566 valueProducer->onDataPulled(allData, /** succeed */ true, bucket2StartTimeNs + pullDelayNs); in TEST() 6569 assertPastBucketValuesSingleKey(valueProducer->mPastBuckets, {5}, {bucketSizeNs}, {pullDelayNs}, in TEST() 6579 {bucketSizeNs, bucketSizeNs}, {pullDelayNs, -pullDelayNs}, in TEST() 6643 const int64_t pullDelayNs = 1 * NS_PER_SEC; // 1 sec in TEST() local 6669 valueProducer->onConditionChanged(false, bucket2StartTimeNs + pullDelayNs); in TEST() 6673 assertPastBucketValuesSingleKey(valueProducer->mPastBuckets, {5}, {bucketSizeNs}, {pullDelayNs}, in TEST() 6678 valueProducer->onConditionChanged(true, bucket2StartTimeNs + pullDelayNs + arbitraryIntervalNs); in TEST() 6681 false, bucket2StartTimeNs + pullDelayNs + arbitraryIntervalNs + conditionDurationNs); in TEST() [all …]
|
/packages/modules/StatsD/statsd/src/guardrail/ |
D | StatsdStats.cpp | 425 void StatsdStats::notePullDelay(int pullAtomId, int64_t pullDelayNs) { in notePullDelay() argument 428 pullStats.maxPullDelayNs = std::max(pullStats.maxPullDelayNs, pullDelayNs); in notePullDelay() 430 (pullStats.avgPullDelayNs * pullStats.numPullDelay + pullDelayNs) / in notePullDelay()
|
D | StatsdStats.h | 350 void notePullDelay(int pullAtomId, int64_t pullDelayNs);
|