aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-04-12 10:25:39 +0200
committerBjörn Gustavsson <[email protected]>2019-04-12 10:25:39 +0200
commit2277e30d3dd207a81037d43a7328bbc91552bb76 (patch)
tree747a18948dfa9374e0c79d417fabfd094d7de40b /lib
parent07be518a33d934837fe9745f0ec9399cc34a367f (diff)
parent7e4c18d1a750f53e16e4b06707722164411bf462 (diff)
downloadotp-2277e30d3dd207a81037d43a7328bbc91552bb76.tar.gz
otp-2277e30d3dd207a81037d43a7328bbc91552bb76.tar.bz2
otp-2277e30d3dd207a81037d43a7328bbc91552bb76.zip
Merge branch 'bjorn/erts/measure-process_main/OTP-15620'
* bjorn/erts/measure-process_main/OTP-15620: Add benchmark Add erts_debug:interpreter_size/0
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().