Observer Tool: Processes appear in the Processes List but not in the Applications graph

时间:2016-02-12 20:10:44

标签: elixir

I've opened my project with iex -S mix and started my application inside then I run :observer.start() to see my processes. The problem is that my application's processes don't appear under the Applications tab, but the do appear in the Processes list. enter image description here enter image description here

Why could that be?

2 个答案:

答案 0 :(得分:2)

原来我忘了定义application callback

答案 1 :(得分:1)

将在观察者图形应用程序浏览器中显示的唯一进程是通过proc_lib函数启动的进程。这就是所有OTP使用的。如果您只是使用普通spawn来电,他们仍然会出现在完整流程列表中。这是因为系统不知道如何将这些流程放入应用程序的树中,因为proc_lib是从哪个应用程序开始的簿记。