just gut pman (try pman:start() if you hadn't seen it in action).<br><br>According to <a href="http://www.erlang.org/doc/pdf/pman.pdf">http://www.erlang.org/doc/pdf/pman.pdf</a><br><br>"Reds - number of reductions performed. Gives a rough estimate of the process' work load."
<br><br>Cheers, Minsloc.<br><br><div><span class="gmail_quote">On 9/17/07, <b class="gmail_sendername">David King</b> <<a href="mailto:dking@ketralnis.com">dking@ketralnis.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to write a process monitor akin to Unix's top(1) for<br>Erlang processes. Is there any way to determine how long a given<br>process spent with the CPU over the last X units of time? The<br>scheduler has to know this, does it expose that information? Does
<br>something like this already exist that I'm missing?<br><br>erlang:process_info/1 returns the following for a given process:<br><br>   [{current_function,{hipe_icode_coordinator,coordinate,4}},<br>    {initial_call,{erlang,apply,2}},
<br>    {status,waiting},<br>    {message_queue_len,0},<br>    {messages,[]},<br>    {links,[]},<br>    {dictionary,[]},<br>    {trap_exit,false},<br>    {error_handler,error_handler},<br>    {priority,normal},<br>    {group_leader,<
0.30.0>},<br>    {heap_size,6765},<br>    {stack_size,6},<br>    {reductions,8193},<br>    {garbage_collection,[{fullsweep_after,65535}]}]<br><br>Is reductions close to what I want? Will that increment for things<br>other than function calls? Does that matter?
<br><br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions">
http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br>