aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/logger_olp.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2019-03-04 11:15:23 +0100
committerSiri Hansen <[email protected]>2019-03-07 14:22:52 +0100
commit09f69a9c87e24c2bdcbbc2bdf1436146b2a825e6 (patch)
treef23813ac31bd46ef31b26d4a9ee9ff696c8c8968 /lib/kernel/src/logger_olp.erl
parentafcaab906cfcf78d5991277a82e39a775b2dc519 (diff)
downloadotp-09f69a9c87e24c2bdcbbc2bdf1436146b2a825e6.tar.gz
otp-09f69a9c87e24c2bdcbbc2bdf1436146b2a825e6.tar.bz2
otp-09f69a9c87e24c2bdcbbc2bdf1436146b2a825e6.zip
[logger] Add max memory usage to statistics in logger_olp
Diffstat (limited to 'lib/kernel/src/logger_olp.erl')
-rw-r--r--lib/kernel/src/logger_olp.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/kernel/src/logger_olp.erl b/lib/kernel/src/logger_olp.erl
index 009280a9c9..8365383fe2 100644
--- a/lib/kernel/src/logger_olp.erl
+++ b/lib/kernel/src/logger_olp.erl
@@ -515,10 +515,11 @@ check_load(State = #{id:=_Name, mode_ref := ModeRef, mode := Mode,
end,
State1 = ?update_other(drops,DROPS,_NewDrops,State),
State2 = ?update_max_qlen(QLen,State1),
- State3 = maybe_notify_mode_change(Mode1,State2),
+ State3 = ?update_max_mem(Mem,State2),
+ State4 = maybe_notify_mode_change(Mode1,State3),
{Mode1, QLen, Mem,
?update_other(flushes,FLUSHES,_NewFlushes,
- State3#{last_qlen => QLen})}.
+ State4#{last_qlen => QLen})}.
limit_burst(#{burst_limit_enable := false}=State) ->
{true,State};