Versions in this module Expand all Collapse all v1 v1.0.0 Oct 31, 2024 Changes in this version + const PanicMemoryExceed + type ActionOnExceed interface + Action func(t *Tracker) + type LogOnExceed struct + func (a *LogOnExceed) Action(t *Tracker) + type PanicOnExceed struct + func (a *PanicOnExceed) Action(t *Tracker) + type Tracker struct + func NewTracker(label string, bytesLimit int64) *Tracker + func (t *Tracker) AttachTo(parent *Tracker) + func (t *Tracker) BytesConsumed() int64 + func (t *Tracker) Consume(bytes int64) + func (t *Tracker) ReplaceChild(oldChild, newChild *Tracker) + func (t *Tracker) SetActionOnExceed(a ActionOnExceed) + func (t *Tracker) SetLabel(label string) + func (t *Tracker) String() string