Raxol.Terminal.ANSI.Monitor (Raxol v2.0.1)
View SourceProvides monitoring capabilities for the ANSI handling system. Tracks performance metrics, errors, and sequence statistics.
Summary
Functions
Returns a specification to start this module under a supervisor.
Gets the current metrics.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Records an error in ANSI sequence processing.
Records the processing of an ANSI sequence.
Resets the metrics.
Types
@type metrics() :: %{ total_sequences: non_neg_integer(), total_bytes: non_neg_integer(), sequence_types: %{required(atom()) => non_neg_integer()}, errors: [{DateTime.t(), String.t(), map()}], performance: %{ parse_time_ms: float(), process_time_ms: float(), total_time_ms: float() } }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec get_metrics() :: metrics()
Gets the current metrics.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Records an error in ANSI sequence processing.
@spec record_sequence(String.t()) :: :ok
Records the processing of an ANSI sequence.
@spec reset_metrics() :: :ok
Resets the metrics.