Lines Matching refs:tickerType

241 uint64_t StatisticsImpl::getTickerCount(uint32_t tickerType) const {  in getTickerCount()
243 return getTickerCountLocked(tickerType); in getTickerCount()
246 uint64_t StatisticsImpl::getTickerCountLocked(uint32_t tickerType) const { in getTickerCountLocked()
247 assert(tickerType < TICKER_ENUM_MAX); in getTickerCountLocked()
250 res += per_core_stats_.AccessAtCore(core_idx)->tickers_[tickerType]; in getTickerCountLocked()
277 void StatisticsImpl::setTickerCount(uint32_t tickerType, uint64_t count) { in setTickerCount() argument
280 setTickerCountLocked(tickerType, count); in setTickerCount()
282 if (stats_ && tickerType < TICKER_ENUM_MAX) { in setTickerCount()
283 stats_->setTickerCount(tickerType, count); in setTickerCount()
287 void StatisticsImpl::setTickerCountLocked(uint32_t tickerType, uint64_t count) { in setTickerCountLocked() argument
288 assert(tickerType < TICKER_ENUM_MAX); in setTickerCountLocked()
291 per_core_stats_.AccessAtCore(core_idx)->tickers_[tickerType] = count; in setTickerCountLocked()
293 per_core_stats_.AccessAtCore(core_idx)->tickers_[tickerType] = 0; in setTickerCountLocked()
298 uint64_t StatisticsImpl::getAndResetTickerCount(uint32_t tickerType) { in getAndResetTickerCount() argument
302 assert(tickerType < TICKER_ENUM_MAX); in getAndResetTickerCount()
305 per_core_stats_.AccessAtCore(core_idx)->tickers_[tickerType].exchange( in getAndResetTickerCount()
309 if (stats_ && tickerType < TICKER_ENUM_MAX) { in getAndResetTickerCount()
310 stats_->setTickerCount(tickerType, 0); in getAndResetTickerCount()
315 void StatisticsImpl::recordTick(uint32_t tickerType, uint64_t count) { in recordTick() argument
316 assert(tickerType < TICKER_ENUM_MAX); in recordTick()
317 per_core_stats_.Access()->tickers_[tickerType].fetch_add( in recordTick()
319 if (stats_ && tickerType < TICKER_ENUM_MAX) { in recordTick()
320 stats_->recordTick(tickerType, count); in recordTick()