Excessibility.TelemetryCapture.Analyzers.ComponentRerender (Excessibility v0.14.0)

View Source

Detects unnecessary component re-renders.

When components are present and renders fire without assign changes, child components are likely re-rendering unnecessarily.

Thresholds

  • Warning: 3+ wasted renders with components present
  • Critical: >50% of renders wasted with components present

Output

%{
  findings: [%{
    severity: :warning,
    message: "4 stable components across 8 renders, but only 2 had assign changes...",
    events: [3, 4, 6, 7, 8],
    metadata: %{component_count: 4, wasted_renders: 5, total_renders: 7}
  }],
  stats: %{render_efficiency: 0.29}
}

Summary

Functions

analyze(map, opts)

Callback implementation for Excessibility.TelemetryCapture.Analyzer.analyze/2.

default_enabled?()

Callback implementation for Excessibility.TelemetryCapture.Analyzer.default_enabled?/0.

name()

Callback implementation for Excessibility.TelemetryCapture.Analyzer.name/0.

requires_enrichers()

Callback implementation for Excessibility.TelemetryCapture.Analyzer.requires_enrichers/0.