Skip to content

Instantly share code, notes, and snippets.

@binarytemple
binarytemple / elixir.diagnostics.markdown
Last active June 23, 2025 18:22
Generate a list of all processes in the system which are neither linked nor monitored.

Inspired by Stuff Goes Bad - Erlang in Anger

Is the global process count indicative of a leak? If so, you may need to investigate unlinked processes, or peek inside supervisors’ children lists to see what may be weird-looking.

defmodule Diags do 

  @doc """