diff options
author | Björn Gustavsson <[email protected]> | 2017-05-17 11:34:45 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-05-17 11:34:45 +0200 |
commit | 79fd4b7c7b77330accae77f0ff90843ea5aed20d (patch) | |
tree | 0a930757513be7e674c5cbb0dadf5b02fd7c8b1f /lib/tools/doc | |
parent | a29bb639a5a0acf7da4d4fa65e4dd7c9cdcadb3c (diff) | |
parent | f3e32131000fc081cbaf2a1ca15f265783fbc040 (diff) | |
download | otp-79fd4b7c7b77330accae77f0ff90843ea5aed20d.tar.gz otp-79fd4b7c7b77330accae77f0ff90843ea5aed20d.tar.bz2 otp-79fd4b7c7b77330accae77f0ff90843ea5aed20d.zip |
Merge pull request #1463 from bjorng/bjorn/simplify-building-lcnt/OTP-14407
Simplify building a lock-counting emulator
Diffstat (limited to 'lib/tools/doc')
-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> |