From 2ea5944504695496e2d8d0364ead14e871c71870 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?=
For investigation of locks in the emulator we use an internal tool called
For investigation of locks in the emulator we use an internal tool called
cd $ERL_TOP -./configure --enable-lock-counter -- -
- Another way to enable this alongside a normal VM is to compile it at emulator directory level, much like a debug build. To compile it this way do the following, -
--cd $ERL_TOP/erts/emulator -make lcnt FLAVOR=smp --
and then starting Erlang with,
+./configure --enable-lock-counter +Start the lock-counting VM like this:
-$ERL_TOP/bin/cerl -lcnt --
To verify that you lock-counting enabled check that
To verify that lock counting is enabled check that
-Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:8:8] [rq:8] [async-threads:0] [hipe] - [kernel-poll:false] [lock-counting] -+Erlang/OTP 20 [erts-9.0] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] + [kernel-poll:false] [lock-counting]