From 4b97ff92a8d2d429370da40c9845199c2a68f12d Mon Sep 17 00:00:00 2001 From: Boshan Sun Date: Thu, 22 Mar 2018 19:47:04 -0700 Subject: Fix sys's debug statistics. Currently, in sys:stat/2, the message out only count for system events with format {out, Msg, To}. However, the gen_server:reply/5 will call sys:handle_debug/4 with format {out, Reply, To, State}. That will make the message out count fail to pattern matching. Also update sys_SUITE.erl and relevant docs. --- system/doc/design_principles/spec_proc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/doc/design_principles/spec_proc.xml b/system/doc/design_principles/spec_proc.xml index 5f4e7ac685..f910c3dba3 100644 --- a/system/doc/design_principles/spec_proc.xml +++ b/system/doc/design_principles/spec_proc.xml @@ -312,7 +312,7 @@ sys:handle_debug(Deb, Func, Info, Event) => Deb1 define what a system event is and how it is to be represented. Typically at least incoming and outgoing messages are considered system events and represented by - the tuples {in,Msg[,From]} and {out,Msg,To}, + the tuples {in,Msg[,From]} and {out,Msg,To[,State]}, respectively.

handle_debug returns an updated debug structure -- cgit v1.2.3