How can I verify that an erlang process is hibernated?

时间:2018-02-26 17:46:58

标签: erlang elixir

Is there a way to verify that an erlang process has been indeed hibernated. erlang:process_info/1 doesn't seem to provide this information and I can't think of anything else which might.

1 个答案:

答案 0 :(得分:1)

以下是在Elixir中如何做同样的事情:

iex(2)> :erlang.process_info(pid, :current_function)
{:current_function, {:erlang, :hibernate, 3}}