memblocker

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL