Does erlang record when a process started?

前端 未结 3 1554
予麋鹿
予麋鹿 2021-01-18 09:22

I\'m working with monitoring an Erlang application and I\'m currently trying to determine how long a specific PID has been running. Absolute timestamp or duration would wor

3条回答
  •  时光取名叫无心
    2021-01-18 09:35

    Write a process which manages this. Since you can find the PID of the given process, you can also set a monitor on the process. Then, if the process errors out, you will get a message in your mailbox.

    I would guess this could form the basis for a solution for you.

提交回复
热议问题