Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Diagnostics

priv/samples/debug/diagnostics.livemd

Diagnostics

CPU

File.read!("/proc/cpuinfo") |> IO.puts()

Networking

VintageNet.info()

Erlang

import IEx.Helpers
runtime_info()

Nerves.Runtime.KV

kv = Nerves.Runtime.KV.get_all()
active = kv["nerves_fw_active"]

data = Enum.group_by(kv, fn
    {<<^active::binary-1, ".", _::binary>>, _} -> :active
    {<<_::8, ".", _::binary>>, _} -> :inactive
    _ -> :global
  end)

Kino.DataTable.new(data.global)
|> Kino.render

Kino.DataTable.new(data.active)
|> Kino.render

Kino.DataTable.new(data.inactive)
|> Kino.render