BeamConsole.Runtime.ProcessSelector (beam_console v0.5.2)

Copy Markdown View Source

Selects a deterministic bounded subset of local processes.

The selector avoids sorting an entire large process population. It keeps at most limit hash-ranked candidates while scanning the input once.

Summary

Functions

Returns at most limit PIDs using deterministic bounded-memory ranking.

Functions

select(pids, limit)

@spec select([pid()], non_neg_integer()) :: [pid()]

Returns at most limit PIDs using deterministic bounded-memory ranking.