Argus.Extractors.OTP (Panoptes v0.13.0)

Copy Markdown View Source

OTP pattern extractor.

Detects OTP behaviour implementations, process links, and the init/handle_continue handshake from module attributes and bytecode. The call facts (sync_call, async_cast, sup_call) come from Argus.Extractors.ApiCalls.

Emitted facts

  • implements_behaviour(mod, behaviour) — module implements a behaviour
  • process_link(from_mod, to_mod) — Process.link / :erlang.link call
  • init_continues_to(mod, tag) — module's init/1 returns {:continue, tag}
  • handle_continue_clause(mod, tag, func_id) — handle_continue/2 clause matching tag