Excessibility.TelemetryCapture.Analyzers.RenderEfficiency (Excessibility v0.14.0)
View SourceAnalyzes render efficiency by detecting wasted renders.
A "wasted render" is a render event with no state changes. This indicates the LiveView re-rendered unnecessarily.
Thresholds
- Warning: 3+ wasted renders
- Critical: >30% of renders are wasted
Output
%{
findings: [
%{
severity: :critical,
message: "3 of 5 renders (60%) had no state changes",
events: [2, 4, 5],
metadata: %{wasted_count: 3, total_count: 5}
}
],
stats: %{
render_count: 5,
wasted_render_count: 3,
efficiency_ratio: 0.4
}
}
Summary
Functions
Callback implementation for Excessibility.TelemetryCapture.Analyzer.analyze/2.
Callback implementation for Excessibility.TelemetryCapture.Analyzer.default_enabled?/0.
Callback implementation for Excessibility.TelemetryCapture.Analyzer.name/0.
Functions
Callback implementation for Excessibility.TelemetryCapture.Analyzer.analyze/2.
Callback implementation for Excessibility.TelemetryCapture.Analyzer.default_enabled?/0.
Callback implementation for Excessibility.TelemetryCapture.Analyzer.name/0.