Insider.Detectors.MailboxGrowth (Insider v0.1.0)

Copy Markdown View Source

Detects sustained mailbox growth with no observed reductions progress.

This bounded streaming reducer consumes complete scalar process samples from Insider.Collector.Poller. A finding means only that the sampled mailbox grew while the cumulative reductions counter did not; it does not prove that no application, NIF, port, or external work completed.

Summary

Types

output()

@type output() ::
  {:finding, Insider.Finding.t()}
  | {:detector_error, Insider.Detectors.MailboxGrowth.Error.t()}

Functions

new(options \\ [])

@spec new(keyword()) ::
  {:ok, Insider.Detectors.MailboxGrowth.State.t()} | {:error, :invalid_options}

observe(state, event, observed_at_us)