aboutsummaryrefslogtreecommitdiff
path: root/doc/ext_profiler.html
diff options
context:
space:
mode:
authorMike Pall <mike>2022-06-23 09:10:43 +0200
committerMike Pall <mike>2022-06-23 09:10:43 +0200
commit4c2441c16ce3c4e312aaefecc6d40c4fe21de97c (patch)
tree0ee5ad7a3246f9a620265de9c6998308cb44a09b /doc/ext_profiler.html
parent0065cff7e0222c234b75a71e72b8883df5d000c2 (diff)
parent2e98c3d0644fc0c265844908f43b7e4526dd819c (diff)
downloadluajit-4c2441c16ce3c4e312aaefecc6d40c4fe21de97c.tar.gz
luajit-4c2441c16ce3c4e312aaefecc6d40c4fe21de97c.tar.bz2
luajit-4c2441c16ce3c4e312aaefecc6d40c4fe21de97c.zip
Merge branch 'master' into v2.1
Diffstat (limited to 'doc/ext_profiler.html')
-rw-r--r--doc/ext_profiler.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/ext_profiler.html b/doc/ext_profiler.html
index 6059b4ea..b645a204 100644
--- a/doc/ext_profiler.html
+++ b/doc/ext_profiler.html
@@ -158,7 +158,7 @@ To see how much time is spent in different VM states or
158Combinations of <tt>v/z</tt> with <tt>f/F/l</tt> produce two-level 158Combinations of <tt>v/z</tt> with <tt>f/F/l</tt> produce two-level
159views, e.g. <tt>-jp=vf</tt> or <tt>-jp=fv</tt>. This shows the time 159views, e.g. <tt>-jp=vf</tt> or <tt>-jp=fv</tt>. This shows the time
160spent in a VM state or zone vs. hotspots. This can be used to answer 160spent in a VM state or zone vs. hotspots. This can be used to answer
161questions like "Which time consuming functions are only interpreted?" or 161questions like "Which time-consuming functions are only interpreted?" or
162"What's the garbage collector overhead for a specific function?". 162"What's the garbage collector overhead for a specific function?".
163</p> 163</p>
164<p> 164<p>
@@ -217,7 +217,7 @@ local profile = require("jit.profile")
217This module can be used to implement your own higher-level profiler. 217This module can be used to implement your own higher-level profiler.
218A typical profiling run starts the profiler, captures stack dumps in 218A typical profiling run starts the profiler, captures stack dumps in
219the profiler callback, adds them to a hash table to aggregate the number 219the profiler callback, adds them to a hash table to aggregate the number
220of samples, stops the profiler and then analyzes all of the captured 220of samples, stops the profiler and then analyzes all captured
221stack dumps. Other parameters can be sampled in the profiler callback, 221stack dumps. Other parameters can be sampled in the profiler callback,
222too. But it's important not to spend too much time in the callback, 222too. But it's important not to spend too much time in the callback,
223since this may skew the statistics. 223since this may skew the statistics.
@@ -271,9 +271,9 @@ returns a string with a stack dump for the <tt>thread</tt> (coroutine),
271formatted according to the <tt>fmt</tt> argument: 271formatted according to the <tt>fmt</tt> argument:
272</p> 272</p>
273<ul> 273<ul>
274<li><tt>p</tt> &mdash; Preserve the full path for module names. Otherwise 274<li><tt>p</tt> &mdash; Preserve the full path for module names. Otherwise,
275only the file name is used.</li> 275only the file name is used.</li>
276<li><tt>f</tt> &mdash; Dump the function name if it can be derived. Otherwise 276<li><tt>f</tt> &mdash; Dump the function name if it can be derived. Otherwise,
277use module:line.</li> 277use module:line.</li>
278<li><tt>F</tt> &mdash; Ditto, but dump module:name.</li> 278<li><tt>F</tt> &mdash; Ditto, but dump module:name.</li>
279<li><tt>l</tt> &mdash; Dump module:line.</li> 279<li><tt>l</tt> &mdash; Dump module:line.</li>