node/doc/api
Trevor Norris 589b2a1244 perf_hooks: add idleTime and event loop util
Use uv_metrics_idle_time() to return a high resolution millisecond timer
of the amount of time the event loop has been idle since it was
initialized.

Include performance.eventLoopUtilization() API to handle the math of
calculating the idle and active times. This has been added to prevent
accidental miscalculations of the event loop utilization. Such as not
taking into consideration offsetting nodeTiming.loopStart or timing
differences when being called from a Worker thread.

PR-URL: https://github.com/nodejs/node/pull/34938
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Adrian Estrada <edsadr@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
2020-08-29 07:02:31 -07:00
..
addons.md doc: simplify "make use of" to "use" 2020-08-28 07:11:09 -07:00
assert.md doc: fix typo in assert.md 2020-07-16 00:26:26 +02:00
async_hooks.md doc: improve async_hooks snippets 2020-08-18 15:16:05 -07:00
buffer.md 2020-08-27, Version 14.9.0 (Current) 2020-08-27 15:44:13 +01:00
child_process.md doc: reword warnings about sockets passed to subprocesses 2020-07-11 21:03:03 -07:00
cli.md 2020-08-27, Version 14.9.0 (Current) 2020-08-27 15:44:13 +01:00
cluster.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
console.md doc: simplify and clarify console.assert() documentation 2020-07-31 23:37:13 -07:00
crypto.md doc: deprecate (doc-only) crypto.Certificate() 2020-08-17 22:11:31 -07:00
debugger.md doc: use sentence-case for headings in docs 2020-06-19 08:09:05 -07:00
deprecations.md 2020-08-27, Version 14.9.0 (Current) 2020-08-27 15:44:13 +01:00
dgram.md doc: improve link-local text in dgram.md 2020-08-26 06:41:21 -07:00
dns.md 2020-07-22, Version 12.18.3 'Erbium' (LTS) 2020-07-22 09:54:26 -07:00
documentation.md doc: use sentence-case for headings in docs 2020-06-19 08:09:05 -07:00
domain.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
embedding.md test,doc: add missing uv_setup_args() calls 2020-08-14 15:29:29 -07:00
errors.md doc: move package config docs to separate page 2020-08-29 03:02:45 -04:00
esm.md doc: move package config docs to separate page 2020-08-29 03:02:45 -04:00
events.md doc: add note about multiple sync events and once 2020-07-09 07:31:54 -07:00
fs.md doc: improve fs doc intro 2020-08-24 11:07:33 -07:00
globals.md doc: use sentence-case for headings in docs 2020-06-19 08:09:05 -07:00
http2.md http2: allow Host in HTTP/2 requests 2020-08-17 13:49:59 +02:00
http.md doc: update http server response 'close' event 2020-08-10 17:52:32 -07:00
https.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
index.md doc: move package config docs to separate page 2020-08-29 03:02:45 -04:00
inspector.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
intl.md doc: use sentence-case for headings in docs 2020-06-19 08:09:05 -07:00
module.md doc: rename module pages 2020-08-23 04:59:42 -07:00
modules.md doc: rename module pages 2020-08-23 04:59:42 -07:00
n-api.md doc: simplify "make use of" to "use" 2020-08-28 07:11:09 -07:00
net.md net: introduce net.BlockList 2020-08-11 11:13:17 -07:00
os.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
packages.md doc: move package config docs to separate page 2020-08-29 03:02:45 -04:00
path.md doc: fix typo in path.md 2020-08-07 08:37:27 -07:00
perf_hooks.md perf_hooks: add idleTime and event loop util 2020-08-29 07:02:31 -07:00
policy.md doc: make general copy-edit changes to policy.md 2020-08-29 06:53:00 -07:00
process.md doc: provide more guidance about process.version 2020-08-27 06:59:15 -07:00
punycode.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
querystring.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
quic.md doc,quic: simplify "make use of" to "use" in quic.md 2020-08-28 07:11:12 -07:00
readline.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
repl.md 2020-06-30, Version 14.5.0 (Current) 2020-06-30 15:27:43 -07:00
report.md doc: use sentence-case for headings in docs 2020-06-19 08:09:05 -07:00
stream.md doc: add writable and readable options to Duplex docs 2020-08-10 12:20:19 +08:00
string_decoder.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
synopsis.md doc: use sentence-case for headings in docs 2020-06-19 08:09:05 -07:00
timers.md 2020-08-27, Version 14.9.0 (Current) 2020-08-27 15:44:13 +01:00
tls.md doc: simplify "make use of" to "use" 2020-08-28 07:11:09 -07:00
tracing.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
tty.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
url.md doc: use consistent spelling for "falsy" 2020-07-31 23:39:01 -07:00
util.md 2020-08-27, Version 14.9.0 (Current) 2020-08-27 15:44:13 +01:00
v8.md doc: add dynamic source code links 2020-06-26 10:25:14 -07:00
vm.md doc: rename module pages 2020-08-23 04:59:42 -07:00
wasi.md 2020-07-21, Version 14.6.0 (Current) 2020-07-21 17:45:12 -04:00
worker_threads.md 2020-08-27, Version 14.9.0 (Current) 2020-08-27 15:44:13 +01:00
zlib.md 2020-06-30, Version 14.5.0 (Current) 2020-06-30 15:27:43 -07:00