aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-04-26 15:39:28 +0200
committerGitHub <[email protected]>2018-04-26 15:39:28 +0200
commitf24a15640beef8acd832e4a3eaf20bbd3c16e38d (patch)
tree49dd393216cd670ca6a6ba57f4784bff25b4d890 /lib/stdlib/src
parentbfde922a6308a7f0956cf688ab38cbdbffbba41d (diff)
parent4b97ff92a8d2d429370da40c9845199c2a68f12d (diff)
downloadotp-f24a15640beef8acd832e4a3eaf20bbd3c16e38d.tar.gz
otp-f24a15640beef8acd832e4a3eaf20bbd3c16e38d.tar.bz2
otp-f24a15640beef8acd832e4a3eaf20bbd3c16e38d.zip
Merge pull request #1759 from sunboshan/sys-fix
[stdlib/sys.erl] Fix sys module's debug statistics not including the out message count when using gen_server:call/2. OTP-15047
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/sys.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdlib/src/sys.erl b/lib/stdlib/src/sys.erl
index 0c578acf21..b1177ece48 100644
--- a/lib/stdlib/src/sys.erl
+++ b/lib/stdlib/src/sys.erl
@@ -44,6 +44,7 @@
-type system_event() :: {'in', Msg :: _}
| {'in', Msg :: _, From :: _}
| {'out', Msg :: _, To :: _}
+ | {'out', Msg :: _, To :: _, State :: _}
| term().
-opaque dbg_opt() :: {'trace', 'true'}
| {'log',
@@ -573,6 +574,7 @@ get_stat(_) ->
stat({in, _Msg}, {Time, Reds, In, Out}) -> {Time, Reds, In+1, Out};
stat({in, _Msg, _From}, {Time, Reds, In, Out}) -> {Time, Reds, In+1, Out};
stat({out, _Msg, _To}, {Time, Reds, In, Out}) -> {Time, Reds, In, Out+1};
+stat({out, _Msg, _To, _State}, {Time, Reds, In, Out}) -> {Time, Reds, In, Out+1};
stat(_, StatData) -> StatData.
trim(N, LogData) ->