krot

process_info

Nov 1st, 2019
388
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. F = fun() ->receive after infinity -> ok end end,
  2.     {_,Bytes}=process_info(spawn(F),memory),
  3.     Bytes div erlang:system_info(wordsize)
RAW Paste Data