Raxol.Performance.DevHints (Raxol v2.0.1)
View SourcePerformance hints system for development mode.
Monitors telemetry events and provides actionable performance hints when operations are slower than expected or patterns indicate potential optimization opportunities.
Features
- Real-time performance monitoring
- Actionable optimization hints
- Pattern detection for common performance issues
- Configurable thresholds
- Integration with existing telemetry infrastructure
Usage
Automatically starts in development mode when telemetry is enabled. Hints are logged to the console with suggestions for optimization.
Configuration
config :raxol, Raxol.Performance.DevHints,
enabled: Mix.env() == :dev,
thresholds: %{
terminal_parse: 100, # microseconds
buffer_write: 50,
render_frame: 1000
},
hint_cooldown: 30_000 # milliseconds between same hints
Summary
Functions
Returns a specification to start this module under a supervisor.
Check if hints are enabled.
Manually trigger a performance hint.
Get current performance statistics.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Check if hints are enabled.
Manually trigger a performance hint.
Get current performance statistics.