Raxol.Terminal.ANSI.Monitor (Raxol v0.5.0)
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.
Records an error in ANSI sequence processing.
Records the processing of an ANSI sequence.
Resets the metrics.
Starts the ANSI monitor process.
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.
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.
@spec start_link(Keyword.t()) :: GenServer.on_start()
Starts the ANSI monitor process.