aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/doc/src/lcnt_chapter.xml
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2017-06-29 19:32:41 +0200
committerJohn Högberg <[email protected]>2017-07-06 12:29:43 +0200
commit876ecc058d0d7dd48f8c5f7ddaf189d278e69925 (patch)
tree4f1e68e6b02db037a361acaeed430381a72653c5 /lib/tools/doc/src/lcnt_chapter.xml
parentfcd8e103006767622cf2ab61a4c85683d863db74 (diff)
downloadotp-876ecc058d0d7dd48f8c5f7ddaf189d278e69925.tar.gz
otp-876ecc058d0d7dd48f8c5f7ddaf189d278e69925.tar.bz2
otp-876ecc058d0d7dd48f8c5f7ddaf189d278e69925.zip
Document rt_mask and add warnings about copy_save
Diffstat (limited to 'lib/tools/doc/src/lcnt_chapter.xml')
-rw-r--r--lib/tools/doc/src/lcnt_chapter.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/tools/doc/src/lcnt_chapter.xml b/lib/tools/doc/src/lcnt_chapter.xml
index 1981d66117..24b58136aa 100644
--- a/lib/tools/doc/src/lcnt_chapter.xml
+++ b/lib/tools/doc/src/lcnt_chapter.xml
@@ -4,7 +4,7 @@
<chapter>
<header>
<copyright>
- <year>2009</year><year>2016</year>
+ <year>2009</year><year>2017</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
@@ -29,7 +29,7 @@
<approved>nobody</approved>
<checked>no</checked>
<date>2009-11-26</date>
- <rev>PA1</rev>
+ <rev>PA2</rev>
<file>lcnt_chapter.xml</file>
</header>
<p>
@@ -97,8 +97,11 @@ ok
ok
</pre>
<p>
- Another way to to profile a specific function is to use <c>lcnt:apply/3</c> or <c>lcnt:apply/1</c> which does <c>lcnt:clear/0</c> before the function and <c>lcnt:collect/0</c> after its invocation.
- It also sets <c>copy_save</c> to <c>true</c> for the duration of the function call
+ Another way to to profile a specific function is to use <c>lcnt:apply/3</c> or <c>lcnt:apply/1</c>
+ which does <c>lcnt:clear/0</c> before the function and <c>lcnt:collect/0</c> after its invocation.
+ This method should only be used in micro-benchmarks since it sets <c>copy_save</c> to <c>true</c>
+ for the duration of the function call, which may cause the emulator to run out of memory if
+ attempted under load.
</p>
<pre>
Erlang R13B03 (erts-5.7.4) [source] [smp:8:8] [rq:8] [async-threads:0] [hipe]