Sliding window data structure that can aggregate moving statistics. It's implmented using ring-buffer with size specified at compile time. More...
#include <sliding_counter.h>
Inheritance diagram for util::uring::SlidingCounterTL< NUM >:
Collaboration diagram for util::uring::SlidingCounterTL< NUM >:Public Member Functions | |
| void | Inc () |
| void | IncBy (int32_t delta) |
| T | SumTail () const |
| T | Sum () const |
| void | Reset () |
Additional Inherited Members | |
Protected Member Functions inherited from util::uring::detail::SlidingCounterTLBase | |
| uint32_t | MoveTsIfNeeded (size_t size, int32_t *dest) const |
Protected Attributes inherited from util::uring::detail::SlidingCounterTLBase | |
| uint32_t | last_ts_ = 0 |
Sliding window data structure that can aggregate moving statistics. It's implmented using ring-buffer with size specified at compile time.
| NUM |
Definition at line 46 of file sliding_counter.h.
1.8.15