[erlang-questions] top(1) in Erlang
Mon Sep 17 19:01:11 CEST 2007
On Sep 17, 2007, at 7:00 PM, David King wrote:
> I'm trying to write a process monitor akin to Unix's top(1) for
> Erlang processes. Is there any way to determine how long a given
> process spent with the CPU over the last X units of time? The
> scheduler has to know this, does it expose that information? Does
> something like this already exist that I'm missing?
> erlang:process_info/1 returns the following for a given process:
> Is reductions close to what I want? Will that increment for things
> other than function calls? Does that matter?
Yes, reductions is what you want.
Btw, you can look at http://www.erlang.org/doc/apps/observer/
and "Erlang Top" from there;)
More information about the erlang-questions