how do I do the equivalent of ets:tab2list(timer_tab) for BIF timers

Matthias Lang matthias@REDACTED
Tue Nov 23 08:09:09 CET 2010


Hi,

How can I see a list of timers started by erlang:send_after/3 and
'receive ... after' constructs?

The timer module "lets" me peek at timers fairly easily, but that only
works for timers started through the timer module, i.e.:

  1> ets:tab2list(timer_tab).
     [{{1290461339356320,#Ref<0.0.0.30>},  timeout,
    {timer,send,[<0.31.0>,hello]}}]

Is there an easier way than hacking erl_bif_timer.c?

Matt


More information about the erlang-questions mailing list