Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/external/
DStatsPuller_test.cpp43 long pullDelayNs; variable
52 sleep_for(std::chrono::nanoseconds(pullDelayNs)); in PullInternal()
74 pullDelayNs = 0; in SetUp()
141 pullDelayNs = (long)(0.8 * NS_PER_SEC); in TEST_F()
170 pullDelayNs = NS_PER_SEC; in TEST_F()
/frameworks/base/cmds/statsd/src/metrics/
DGaugeMetricProducer.cpp342 const int64_t pullDelayNs = getElapsedRealtimeNs() - timestampNs; in pullAndMatchEventsLocked() local
343 if (pullDelayNs > mMaxPullDelayNs) { in pullAndMatchEventsLocked()
346 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in pullAndMatchEventsLocked()
349 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in pullAndMatchEventsLocked()
DValueMetricProducer.cpp523 const int64_t pullDelayNs = getElapsedRealtimeNs() - originalPullTimeNs; in accumulateEvents() local
524 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in accumulateEvents()
525 if (pullDelayNs > mMaxPullDelayNs) { in accumulateEvents()
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.h340 void notePullDelay(int pullAtomId, int64_t pullDelayNs);
DStatsdStats.cpp423 void StatsdStats::notePullDelay(int pullAtomId, int64_t pullDelayNs) { in notePullDelay() argument
426 pullStats.maxPullDelayNs = std::max(pullStats.maxPullDelayNs, pullDelayNs); in notePullDelay()
428 (pullStats.avgPullDelayNs * pullStats.numPullDelay + pullDelayNs) / in notePullDelay()