[erlang-patches] add sys:get_state/1, 2 and sys:replace_state/2, 3
Fredrik
fredrik@REDACTED
Wed Apr 3 10:19:20 CEST 2013
On 04/03/2013 02:20 AM, Steve Vinoski wrote:
> 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.
>
> 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:
>
> https://github.com/vinoski/otp/commit/876b3644ecfac12accf36fbf0d0625e3ac4f6498
>
> Patrik Nyblom was kind enough to already review the branch for me --
> thanks Patrik.
>
> 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.
>
> git fetch git://github.com/vinoski/otp.git
> <http://github.com/vinoski/otp.git> sv-sys-get-state
>
> https://github.com/vinoski/otp/compare/erlang:maint...sv-sys-get-state
> https://github.com/vinoski/otp/compare/erlang:maint...sv-sys-get-state.patch
>
> --steve
>
>
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://erlang.org/mailman/listinfo/erlang-patches
Hello and thanks for the patch. I'll put it into testing right away!
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 Fredrik Gustafsson
Erlang OTP Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130403/52b95e67/attachment.htm>
More information about the erlang-patches
mailing list