Home
last modified time | relevance | path

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

/frameworks/base/cmds/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(5); // 5 ms. in TEST_F()
206 EXPECT_GT(pullDelayNs / 5, 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()
/frameworks/base/cmds/statsd/src/metrics/
DGaugeMetricProducer.cpp329 const int64_t pullDelayNs = getElapsedRealtimeNs() - timestampNs; in pullAndMatchEventsLocked() local
330 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in pullAndMatchEventsLocked()
331 if (pullDelayNs > mMaxPullDelayNs) { in pullAndMatchEventsLocked()
418 const int64_t pullDelayNs = getElapsedRealtimeNs() - originalPullTimeNs; in onDataPulled() local
419 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in onDataPulled()
420 if (pullDelayNs > mMaxPullDelayNs) { in onDataPulled()
DValueMetricProducer.cpp594 const int64_t pullDelayNs = elapsedRealtimeNs - originalPullTimeNs; in accumulateEvents() local
595 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in accumulateEvents()
596 if (pullDelayNs > mMaxPullDelayNs) { in accumulateEvents()
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.h350 void notePullDelay(int pullAtomId, int64_t pullDelayNs);
DStatsdStats.cpp425 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()