#include <Meter.h>
Public Member Functions | |
void | flush () |
flush the meter level back to 0, but leave peak records More... | |
ssize_t | currentLevel () const |
ssize_t | peak () const |
time_t | peakTime () const |
Meter & | operator++ () |
Meter & | operator-- () |
Meter & | operator+= (ssize_t n) |
Meter & | operator-= (ssize_t n) |
Private Member Functions | |
void | checkHighWater () |
Private Attributes | |
ssize_t | level = 0 |
current level (count or volume) More... | |
ssize_t | hwater_level = 0 |
high water mark More... | |
time_t | hwater_stamp = 0 |
timestamp of last high water mark change More... | |
Detailed Description
Member Function Documentation
◆ checkHighWater()
|
inlineprivate |
check the high-water level of this meter and raise if necessary recording the timestamp of last high-water peak change
Definition at line 39 of file Meter.h.
References hwater_level, hwater_stamp, level, and squid_curtime.
Referenced by operator++(), and operator+=().
◆ currentLevel()
|
inline |
Definition at line 26 of file Meter.h.
References level.
Referenced by MemPoolChunked::allocate(), MemPools::clean(), MemPoolChunked::deallocate(), MemPools::flushMeters(), GetInfo(), Mem::Allocator::getInUseCount(), MemPoolChunked::getStats(), MemPoolMalloc::getStats(), MemPoolChunked::idleTrigger(), memBufStats(), memStringStats(), Mem::PoolReport(), and Mem::Report().
◆ flush()
|
inline |
◆ operator++()
|
inline |
Definition at line 30 of file Meter.h.
References checkHighWater(), and level.
◆ operator+=()
|
inline |
Definition at line 33 of file Meter.h.
References checkHighWater(), and level.
◆ operator--()
◆ operator-=()
|
inline |
◆ peak()
|
inline |
◆ peakTime()
|
inline |
Member Data Documentation
◆ hwater_level
|
private |
Definition at line 47 of file Meter.h.
Referenced by checkHighWater(), and peak().
◆ hwater_stamp
|
private |
Definition at line 48 of file Meter.h.
Referenced by checkHighWater(), and peakTime().
◆ level
|
private |
Definition at line 46 of file Meter.h.
Referenced by checkHighWater(), currentLevel(), flush(), operator++(), operator+=(), operator--(), and operator-=().
The documentation for this class was generated from the following file:
- src/mem/Meter.h