diff options
author | Björn Gustavsson <[email protected]> | 2017-05-16 09:22:02 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-05-16 10:19:45 +0200 |
commit | 2ea5944504695496e2d8d0364ead14e871c71870 (patch) | |
tree | bdd35cb1acfcea3fac9838f00b3a8474be3a7047 /lib | |
parent | 6166106ff9ff9d62b5d5966dbdb03e189e2a2bdf (diff) | |
download | otp-2ea5944504695496e2d8d0364ead14e871c71870.tar.gz otp-2ea5944504695496e2d8d0364ead14e871c71870.tar.bz2 otp-2ea5944504695496e2d8d0364ead14e871c71870.zip |
Update instructions for how to start the lock-counting VM
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tools/doc/src/lcnt_chapter.xml | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/lib/tools/doc/src/lcnt_chapter.xml b/lib/tools/doc/src/lcnt_chapter.xml index 6cfdb5cf1b..362f212963 100644 --- a/lib/tools/doc/src/lcnt_chapter.xml +++ b/lib/tools/doc/src/lcnt_chapter.xml @@ -48,29 +48,19 @@ </p> <section> <title> Enabling lock-counting </title> - <p>For investigation of locks in the emulator we use an internal tool called <c>lcnt</c> (short for lock-count). The VM needs to be compiled with this option enabled. To enable this, use:</p> + <p>For investigation of locks in the emulator we use an internal tool called <c>lcnt</c> (short for lock-count). The VM needs to be compiled with this option enabled. + To compile a lock-counting VM along with a normal VM, use:</p> <pre> cd $ERL_TOP -./configure --enable-lock-counter - </pre> - - <p> - 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, - </p> - <pre> -cd $ERL_TOP/erts/emulator -make lcnt FLAVOR=smp - </pre> - <p> and then starting Erlang with,</p> +./configure --enable-lock-counter</pre> + <p>Start the lock-counting VM like this:</p> <pre> -$ERL_TOP/bin/cerl -lcnt - </pre> - <p>To verify that you lock-counting enabled check that <c>[lock-counting]</c> appears in the status text when the VM is started.</p> +$ERL_TOP/bin/erl -emu_type lcnt</pre> + <p>To verify that lock counting is enabled check that <c>[lock-counting]</c> appears in the status text when the VM is started.</p> <pre> -Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:8:8] [rq:8] [async-threads:0] [hipe] - [kernel-poll:false] [lock-counting] - </pre> +Erlang/OTP 20 [erts-9.0] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] + [kernel-poll:false] [lock-counting]</pre> </section> <section> <title>Getting started</title> |