<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 04/03/2013 02:20 AM, Steve Vinoski wrote:
<blockquote
cite="mid:CAO+zUOV7USg_mj=-SzscT=-2HTXC0FbnutfbZecHL0rHS_3xxw@mail.gmail.com"
type="cite">
<div>At Erlang Factory 2013 there was discussion during one of the
talks about the sys:get_status functions and how useful they
were for debugging. Geoff Cant mentioned it would be very useful
if the sys module also provided functions to use while debugging
to get just the state of a process and also to be able to
replace the state of a process, and many others in the audience
appeared to agree.</div>
<div><br>
</div>
<div>This patch adds the sys:get_state/1,2 and
sys:replace_state/2,3 function to do what Geoff suggested. See
the commit message for more details:</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://github.com/vinoski/otp/commit/876b3644ecfac12accf36fbf0d0625e3ac4f6498">https://github.com/vinoski/otp/commit/876b3644ecfac12accf36fbf0d0625e3ac4f6498</a></div>
<div><br>
</div>
<div>Patrik Nyblom was kind enough to already review the branch
for me -- thanks Patrik.</div>
<div><br>
</div>
<div>Note that there are two commits on this branch; the second
one is described above. The first commit on the branch updates
the documentation for sys:get_status/2,3 to note that it also
works with gen_event.</div>
<div><br>
</div>
<div>git fetch git://<a moz-do-not-send="true"
href="http://github.com/vinoski/otp.git">github.com/vinoski/otp.git</a> sv-sys-get-state</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://github.com/vinoski/otp/compare/erlang:maint...sv-sys-get-state">https://github.com/vinoski/otp/compare/erlang:maint...sv-sys-get-state</a></div>
<div>
<div><a moz-do-not-send="true"
href="https://github.com/vinoski/otp/compare/erlang:maint...sv-sys-get-state.patch">https://github.com/vinoski/otp/compare/erlang:maint...sv-sys-get-state.patch</a></div>
</div>
<div><br>
</div>
<div>--steve</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-patches mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-patches@erlang.org">erlang-patches@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-patches">http://erlang.org/mailman/listinfo/erlang-patches</a>
</pre>
</blockquote>
Hello and thanks for the patch. I'll put it into testing right away!<br>
I happened to see that you are using the '?line' macro, which we
don't use anymore, but I can remove it for you.<br>
<br>
<pre class="moz-signature" cols="72">--
BR Fredrik Gustafsson
Erlang OTP Team</pre>
</body>
</html>