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

View Source

Detects excessive push_event calls to JS hooks.

Outbound push_event calls that fire too frequently can overwhelm JS hooks on the client side, causing jank or dropped frames.

Detection

  • Flag >5 push_events from a single handler
  • Group by event name to detect repeated pushes
  • Suggest batching into single push_event with collected data

Output

%{
  findings: [%{
    severity: :warning,
    message: "handle_info:update called push_event("update-chart") 15 times...",
    events: [1],
    metadata: %{event_name: "update-chart", count: 15}
  }],
  stats: %{total_push_events: 15}
}

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.