9#ifndef SQUID_SRC_MEM_METER_H
10#define SQUID_SRC_MEM_METER_H
68 void update(
size_t items,
size_t itemSize) {
70 bytes += (items * itemSize);
ssize_t hwater_level
high water mark
time_t hwater_stamp
timestamp of last high water mark change
ssize_t currentLevel() const
ssize_t level
current level (count or volume)
Meter & operator-=(ssize_t n)
Meter & operator+=(ssize_t n)
void flush()
flush the meter level back to 0, but leave peak records
Object to track per-pool cumulative counters.
void update(size_t items, size_t itemSize)
account for memory actions taking place
mgb_t & operator+=(const mgb_t &o)
void flush()
flush counters back to 0, but leave historic peak records