aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-12-18 18:41:38 +0100
committerSverker Eriksson <[email protected]>2017-12-20 15:19:32 +0100
commitd74796ecb17a68d442e846c4032a57cb2c083686 (patch)
tree403ce2e9b9c1203cbd015b182619af8e830f3494 /erts/preloaded/src
parent6789b20533b4a848953fa7af34d9ba3a4c89c5ca (diff)
downloadotp-d74796ecb17a68d442e846c4032a57cb2c083686.tar.gz
otp-d74796ecb17a68d442e846c4032a57cb2c083686.tar.bz2
otp-d74796ecb17a68d442e846c4032a57cb2c083686.zip
erts: Add more stats for mbcs_pool
similar to the ones in OTP-19.2.3.1
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r--erts/preloaded/src/erlang.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl
index 8771089b65..3abb4538dc 100644
--- a/erts/preloaded/src/erlang.erl
+++ b/erts/preloaded/src/erlang.erl
@@ -3713,15 +3713,14 @@ memory_is_supported() ->
get_blocks_size([{blocks_size, Sz, _, _} | Rest], Acc) ->
get_blocks_size(Rest, Acc+Sz);
-get_blocks_size([{_, _, _, _} | Rest], Acc) ->
- get_blocks_size(Rest, Acc);
get_blocks_size([{blocks_size, Sz} | Rest], Acc) ->
get_blocks_size(Rest, Acc+Sz);
-get_blocks_size([{_, _} | Rest], Acc) ->
+get_blocks_size([_ | Rest], Acc) ->
get_blocks_size(Rest, Acc);
get_blocks_size([], Acc) ->
Acc.
+
blocks_size([{Carriers, SizeList} | Rest], Acc) when Carriers == mbcs;
Carriers == mbcs_pool;
Carriers == sbcs ->