elixir

How can I check memory usage in Elixir?


Is that possible to check memory usage in Elixir? (maybe calling Erlang)

This is what I want to achieve:

  1. Check total memory usage - let's say 1G of 8G
  2. Read a 4G file
  3. Check total memory usage - let's say 5G of 8G

Solution

  • :erlang.memory(:total) was what I was looking for. Thank you Dogbert for pointing this out in your comment.