简体   繁体   English

Elixir 中的 regs() 等价物是什么?

[英]What is the regs() equivalent in Elixir?

Just like we use regs().就像我们使用regs(). in the Erlang shell to list all the processes running on BEAM is their an equivalent of this in Elixir or iex?在 Erlang shell 中列出在 BEAM 上运行的所有进程是它们在 Elixir 或 iex 中的等价物吗?

regs() is a function defined in the c module which is imported into the Erlang shell by default. regs()c模块中定义的一个函数,默认导入到 Erlang shell 中。 In Elixir, you can call it using :c.regs() .在 Elixir 中,您可以使用:c.regs()调用它。

iex(1)> :c.regs()

** Registered procs on node nonode@nohost **
Name                  Pid          Initial Call                      Reds Msgs
'Elixir.IEx.Broker'   <0.91.0>     'Elixir.IEx.Broker':init/           34    0
'Elixir.IEx.Config'   <0.90.0>     'Elixir.IEx.Config':handl           80    0
'Elixir.IEx.Pry'      <0.92.0>     'Elixir.IEx.Pry':init/1             36    0
'Elixir.IEx.Superviso <0.89.0>     supervisor:'Elixir.Superv          416    0
...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM