aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_info.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-05-18 17:59:33 +0200
committerSverker Eriksson <[email protected]>2018-06-04 16:28:47 +0200
commit1c8365272a55301609dc8c46aa49fa0ac048506e (patch)
tree1017c1e65c1953630299bffb6c5601098d2e69c0 /erts/emulator/beam/erl_bif_info.c
parent9338ea3f9d3f7db949001a461456e8ce0339a1b5 (diff)
downloadotp-1c8365272a55301609dc8c46aa49fa0ac048506e.tar.gz
otp-1c8365272a55301609dc8c46aa49fa0ac048506e.tar.bz2
otp-1c8365272a55301609dc8c46aa49fa0ac048506e.zip
erts: Add system_info(ets_count)
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r--erts/emulator/beam/erl_bif_info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index 8b2b1a58c7..5789fa8e71 100644
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -3129,6 +3129,9 @@ BIF_RETTYPE system_info_1(BIF_ALIST_1)
else if (ERTS_IS_ATOM_STR("ets_limit",BIF_ARG_1)) {
BIF_RET(make_small(erts_db_get_max_tabs()));
}
+ else if (ERTS_IS_ATOM_STR("ets_count",BIF_ARG_1)) {
+ BIF_RET(make_small(erts_ets_table_count()));
+ }
else if (ERTS_IS_ATOM_STR("atom_limit",BIF_ARG_1)) {
BIF_RET(make_small(erts_get_atom_limit()));
}