Raxol.Performance.TelemetryInstrumentation (Raxol v2.0.1)
View SourceTelemetry instrumentation for Raxol hot paths.
Provides consistent telemetry events across the codebase for:
- Performance monitoring
- Predictive optimization
- Debugging and profiling
All measurements are in microseconds unless otherwise noted.
Summary
Functions
Record buffer operations.
Record a cache hit or miss.
Instrument a function call with telemetry.
Record parser operations.
Record rendering operations.
Setup default telemetry handlers for monitoring.
Instrument a function with start/stop events.
Functions
Record buffer operations.
Record a cache hit or miss.
Instrument a function call with telemetry.
Example
instrument(:terminal_parse, %{sequence_type: :csi}, fn ->
# expensive operation
end)
Record parser operations.
Record rendering operations.
Setup default telemetry handlers for monitoring.
Instrument a function with start/stop events.
Useful for async operations or when you need more control.