aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/design_principles/spec_proc.xml
diff options
context:
space:
mode:
authorBoshan Sun <[email protected]>2018-03-22 19:47:04 -0700
committerBoshan Sun <[email protected]>2018-04-23 09:21:33 -0700
commit4b97ff92a8d2d429370da40c9845199c2a68f12d (patch)
tree4a9bfa6dad677b10f47831e2343416dde5ad6dae /system/doc/design_principles/spec_proc.xml
parent6b31b88f74bf7194bed5df72eeabda3cc645a39c (diff)
downloadotp-4b97ff92a8d2d429370da40c9845199c2a68f12d.tar.gz
otp-4b97ff92a8d2d429370da40c9845199c2a68f12d.tar.bz2
otp-4b97ff92a8d2d429370da40c9845199c2a68f12d.zip
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.
Diffstat (limited to 'system/doc/design_principles/spec_proc.xml')
-rw-r--r--system/doc/design_principles/spec_proc.xml2
1 files changed, 1 insertions, 1 deletions
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</code>
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 <c>{in,Msg[,From]}</c> and <c>{out,Msg,To}</c>,
+ the tuples <c>{in,Msg[,From]}</c> and <c>{out,Msg,To[,State]}</c>,
respectively.</item>
</list>
<p><c>handle_debug</c> returns an updated debug structure