Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemBlocker ¶
type MemBlocker struct {
// contains filtered or unexported fields
}
func NewMemBlocker ¶
func NewMemBlocker(maxBytes uint64) *MemBlocker
func (*MemBlocker) IsThereFreeMemory ¶
func (mb *MemBlocker) IsThereFreeMemory() bool
func (*MemBlocker) LastHeapSize ¶
func (mb *MemBlocker) LastHeapSize() uint64
func (*MemBlocker) MemoryWasFreed ¶
func (mb *MemBlocker) MemoryWasFreed()
func (*MemBlocker) StartFreeingMem ¶
func (mb *MemBlocker) StartFreeingMem()
func (*MemBlocker) WaitForSpareMemory ¶
func (mb *MemBlocker) WaitForSpareMemory()
WaitForSpareMemory waits until this process's allocated bytes on the heap falls below maxBytes
Click to show internal directories.
Click to hide internal directories.