diff options
author | Sverker Eriksson <[email protected]> | 2018-04-12 11:54:47 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-04-13 17:38:25 +0200 |
commit | bf0b86ea8e71d05331ef36c472f4dee646b22c38 (patch) | |
tree | dcc32b8ed1d262a0c29136b5e4c03cb245efc6d4 /erts/emulator/beam/erl_bif_info.c | |
parent | a7a70269a56d3fe651efcfa5a1139bfec2c8b1c0 (diff) | |
download | otp-bf0b86ea8e71d05331ef36c472f4dee646b22c38.tar.gz otp-bf0b86ea8e71d05331ef36c472f4dee646b22c38.tar.bz2 otp-bf0b86ea8e71d05331ef36c472f4dee646b22c38.zip |
erts: Add erts_debug:lc_graph/0
Run debug VM or config with --enable-lock-checking.
Exercise VM and then run
erts_debug:lc_graph().
to create a file "lc_graph.<pid>" in current working directory.
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r-- | erts/emulator/beam/erl_bif_info.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c index bdca93428e..874ac0f9e6 100644 --- a/erts/emulator/beam/erl_bif_info.c +++ b/erts/emulator/beam/erl_bif_info.c @@ -3928,6 +3928,15 @@ BIF_RETTYPE erts_debug_get_internal_state_1(BIF_ALIST_1) BIF_RET(am_false); #endif } + else if (ERTS_IS_ATOM_STR("lc_graph", BIF_ARG_1)) { +#ifdef ERTS_ENABLE_LOCK_CHECK + Eterm res = erts_lc_dump_graph(); + BIF_RET(res); +#else + BIF_RET(am_notsup); +#endif + } + } else if (is_tuple(BIF_ARG_1)) { Eterm* tp = tuple_val(BIF_ARG_1); |