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_lock_check.h | |
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_lock_check.h')
-rw-r--r-- | erts/emulator/beam/erl_lock_check.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_lock_check.h b/erts/emulator/beam/erl_lock_check.h index 5c2c38e8f2..138bc810bd 100644 --- a/erts/emulator/beam/erl_lock_check.h +++ b/erts/emulator/beam/erl_lock_check.h @@ -94,6 +94,8 @@ void erts_lc_unrequire_lock(erts_lc_lock_t *lck); int erts_lc_is_emu_thr(void); +Eterm erts_lc_dump_graph(void); + #define ERTS_LC_ASSERT(A) \ ((void) (((A) || ERTS_SOMEONE_IS_CRASH_DUMPING) ? 1 : erts_lc_assert_failed(__FILE__, __LINE__, #A))) #else /* #ifdef ERTS_ENABLE_LOCK_CHECK */ |