Raxol.Terminal.MemoryManager (Raxol v0.5.0)
View SourceManages memory usage and limits for the terminal emulator.
Summary
Functions
Checks and cleans up memory if needed.
Returns a specification to start this module under a supervisor.
Gets the current memory usage.
Checks if scrolling is needed based on memory usage.
Starts the memory manager process.
Updates memory usage for the given state.
Checks if the current memory usage is within limits.
Types
@type t() :: %Raxol.Terminal.MemoryManager{ current_memory: non_neg_integer(), max_memory: non_neg_integer(), memory_limit: non_neg_integer() }
Functions
Checks and cleans up memory if needed.
Returns a specification to start this module under a supervisor.
See Supervisor
.
Gets the current memory usage.
Checks if scrolling is needed based on memory usage.
Starts the memory manager process.
Updates memory usage for the given state.
Checks if the current memory usage is within limits.