<div dir="ltr"><div>Those don't exist by default as far as I can tell, but you can work around that for some processes using the <i>sys</i> module and gen_* debug attributes:</div><div><br></div><div>     sys:statistics(Pid, true | false) -> ok<br></div><div>     sys:statistics(Pid, get [, Timeout]) -> {ok, Stats}</div><div><br></div><div>It can be used interactively as:<br></div><div><br></div><div style="margin-left:40px">1> sys:statistics(error_logger, true).<br>ok<br>2> sys:statistics(error_logger, get).<br>{ok,[{start_time,{{2017,9,28},{9,48,35}}},<br>     {current_time,{{2017,9,28},{9,48,37}}},<br>     {reductions,25},<br>     {messages_in,0},<br>     {messages_out,0}]}<br>3> error_logger:info_msg("test", []).<br>ok<br>4><br>=INFO REPORT==== 28-Sep-2017::09:48:50 ===<br>5> sys:statistics(error_logger, get).<br>{ok,[{start_time,{{2017,9,28},{9,48,35}}},<br>     {current_time,{{2017,9,28},{9,48,52}}},<br>     {reductions,674},<br>     {messages_in,1},<br>     {messages_out,0}]}</div><div><br></div><div>You can also start the server as `gen_Whatever:start_link(Arg1, ..., [{debug, [statistics]}])' to enable the gathering from start time on the required processes.</div><div><br></div><div>I know of no other way to handle that kind of stuff at the moment.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 28, 2017 at 9:35 AM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">No.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I mean:</div><div class="gmail_extra"><br></div><div class="gmail_extra">process_info(self(), total_messages_received)</div><div class="gmail_extra">process_info(self(), total_messages_sent)</div><div class="gmail_extra"><br></div></div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>