Raxol.Terminal.MemoryManager (Raxol v0.2.0)
View SourceMonitors and manages memory usage for terminal processes.
Can trigger actions like trimming scrollback when limits are exceeded.
Summary
Functions
Checks if memory usage exceeds the limit and performs cleanup if necessary.
Returns a specification to start this module under a supervisor.
Performs memory cleanup operations on relevant terminal components.
Functions
@spec check_and_cleanup(Raxol.Terminal.Integration.t()) :: Raxol.Terminal.Integration.t()
Checks if memory usage exceeds the limit and performs cleanup if necessary.
This function should be called periodically.
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec perform_cleanup(Raxol.Terminal.Integration.t()) :: Raxol.Terminal.Integration.t()
Performs memory cleanup operations on relevant terminal components.
Currently focuses on trimming the buffer manager.