Hi!<div><br></div><div>As far as i can tell, this is fixed in <a href="https://github.com/erlang/otp/commit/195be9a44f2481b9c575c8ad286f4d2278b831b3">https://github.com/erlang/otp/commit/195be9a44f2481b9c575c8ad286f4d2278b831b3</a>, thanks.</div>
<div><br></div><div>MVH Magnus<br><br><div class="gmail_quote">2012/1/3 Björn-Egil Dahlberg <span dir="ltr"><<a href="mailto:egil@erlang.org">egil@erlang.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
From what I remember (trying to recall something written five years
ago) system_profile used to respect this policy but from looking at
the code it seems like it doesn't now. The tracing and scheduler
queues has been rewritten several times since then and it is
possible that something has been lost.<br>
<br>
I will have a look at it. Thank you for reporting this.<br>
<br>
Regards,<br>
Björn-Egil<div><div class="h5"><br>
<br>
On <a href="tel:2012-01-03%2001" value="+12012010301" target="_blank">2012-01-03 01</a>:37, Magnus Klaar wrote:
</div></div><blockquote type="cite"><div><div class="h5">Hi!
<div><br>
</div>
<div>I'm seeing a strange behavior when using erlang:system_info/2
to trace the running processes on an erlang node. I know it's
flagged as experimental so I will assume it's actually a feature
even if the documentation does not agree. When a process is used
to receive the profile messages from erlang:system_info/2 the
receiving process is also profiled. The effect of this is that
the process receiving the profile messages will receive an
infinite sequence of 'inactive' ... 'active' ... 'inactive' ....
messages from the runtime system. The manpage states that the "<span style="color:rgb(34,34,34);font-family:verdana,Arial,sans-serif;font-size:13px;line-height:17px">The
receiver is excluded from all profiling.". I've compared this
with using the erlang:trace/3 function to trace running
processes, when this function is used the tracer processes
never receives a message when the tracer process scheduled.</span></div>
<div><span style="color:rgb(34,34,34);font-family:verdana,Arial,sans-serif;font-size:13px;line-height:17px"><br>
</span></div>
<div><font color="#222222" face="verdana,
Arial, sans-serif"><span style="line-height:17px">Two eunit tests for showing the
difference: </span></font><a href="https://gist.github.com/1552673" target="_blank">https://gist.github.com/1552673</a></div>
<div><br>
</div>
<div>Running "erl -noshell -s system_profile test -s init stop" on
my system yields the following result:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>system_profile.erl:30:<0.35.0>: Total: 525169, For
tracer: 524824, For others: 345</div>
<div><br>
</div>
<div>system_profile:13: system_profile_test_...*failed*</div>
<div>::{assertion_failed,[{module,system_profile},</div>
<div> {line,32},</div>
<div> {expression,"SelfCount =:= 0"},</div>
<div> {expected,true},</div>
<div> {value,false}]}</div>
<div><br>
</div>
<div><br>
</div>
<div>system_profile.erl:58:<0.123.0>: Total: 338, For
tracer: 0, For others: 338</div>
<div><br>
</div>
<div>=======================================================</div>
<div> Failed: 1. Skipped: 0. Passed: 1.</div>
</div>
<div><span style="color:rgb(34,34,34);font-family:verdana,Arial,sans-serif;font-size:13px;line-height:17px"><br>
</span></div>
<div><span style="color:rgb(34,34,34);font-family:verdana,Arial,sans-serif;font-size:13px;line-height:17px"><br>
</span></div>
<div><span style="color:rgb(34,34,34);font-family:verdana,Arial,sans-serif;font-size:13px;line-height:17px">My
questions are: Am I using it wrong? If so, how should it be
used? If not, Is it a bug?</span></div>
<div><span style="color:rgb(34,34,34);font-family:verdana,Arial,sans-serif;font-size:13px;line-height:17px"><br>
</span></div>
<div><span style="color:rgb(34,34,34);font-family:verdana,Arial,sans-serif;font-size:13px;line-height:17px">MVH
Magnus</span></div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
erlang-questions mailing list
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<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" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>