aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-04-08 15:00:06 +0200
committerBjörn Gustavsson <[email protected]>2019-04-08 16:25:01 +0200
commit9dca10bd14a3ee5b2e491e8249f3d5de7b5a116c (patch)
treed6f50ee46ecbb912fb3cf72262c3501229ab0185 /lib
parentf93862d2fe7e994523b1a6b2ca99635a4cf5bba3 (diff)
downloadotp-9dca10bd14a3ee5b2e491e8249f3d5de7b5a116c.tar.gz
otp-9dca10bd14a3ee5b2e491e8249f3d5de7b5a116c.tar.bz2
otp-9dca10bd14a3ee5b2e491e8249f3d5de7b5a116c.zip
Add erts_debug:interpreter_size/0
Add erts_debug:interpreter_size/0 for retrieving the approximate size of the BEAM interpreter (process_main()).
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/erts_debug.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/kernel/src/erts_debug.erl b/lib/kernel/src/erts_debug.erl
index c4d276f9e8..e6a30d0b92 100644
--- a/lib/kernel/src/erts_debug.erl
+++ b/lib/kernel/src/erts_debug.erl
@@ -33,6 +33,7 @@
-export([breakpoint/2, disassemble/1, display/1, dist_ext_to_term/2,
flat_size/1, get_internal_state/1, instructions/0,
+ interpreter_size/0,
map_info/1, same/2, set_internal_state/2,
size_shared/1, copy_shared/1, dirty_cpu/2, dirty_io/2, dirty/3,
lcnt_control/1, lcnt_control/2, lcnt_collect/0, lcnt_clear/0,
@@ -118,6 +119,11 @@ get_internal_state(_) ->
instructions() ->
erlang:nif_error(undef).
+-spec interpreter_size() -> pos_integer().
+
+interpreter_size() ->
+ erlang:nif_error(undef).
+
-spec ic(F) -> Result when
F :: function(),
Result :: term().