Raxol.Terminal.MemoryManager (Raxol v0.2.0)

View Source

Monitors 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

check_and_cleanup(integration)

Checks if memory usage exceeds the limit and performs cleanup if necessary.

This function should be called periodically.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

perform_cleanup(integration)

Performs memory cleanup operations on relevant terminal components.

Currently focuses on trimming the buffer manager.