0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
James M Snell bcdd228f90
perf_hooks: implement histogram based api
Add a sampling-based event loop delay monitor.

```js
const { monitorEventLoopDelay } = require('perf_hooks');

const h = monitorEventLoopDelay();

h.enable();

h.disable();

console.log(h.percentiles);
console.log(h.min);
console.log(h.max);
console.log(h.mean);
console.log(h.stddev);
console.log(h.percentile(50));
```

PR-URL: https://github.com/nodejs/node/pull/25378
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2019-02-08 09:20:18 -08:00
..
addons.md doc: make modules.md more accurate 2019-01-08 01:16:51 +02:00
assert.md assert: adjust loose assertions 2019-01-27 03:34:25 +01:00
async_hooks.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
buffer.md doc: correct my wrong note about buf.fill() 2019-01-20 17:02:18 +02:00
child_process.md child_process: truncate output when maxBuffer is exceeded 2019-01-23 15:45:46 -08:00
cli.md src: allow --perf-prof-unwinding-info in NODE_OPTIONS 2019-02-08 14:43:18 +01:00
cluster.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
console.md 2019-01-17, Version 11.7.0 (Current), @BridgeAR 2019-01-18 14:03:19 +01:00
crypto.md doc: fix keyObject.symmetricSize to be keyObject.symmetricKeySize 2019-01-26 03:09:18 +02:00
debugger.md inspector: use js_app.html as the landing page for chrome devtools 2018-06-28 09:24:02 -03:00
deprecations.md process: move DEP0062 (node --debug) to end-of-life 2019-02-02 05:45:05 +08:00
dgram.md 2018-12-07, Version 11.4.0 (Current) 2018-12-07 18:50:20 +01:00
dns.md doc: clarify what dns.setResolvers() affects 2019-01-25 10:18:03 -08:00
documentation.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
domain.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
errors.md doc: fix err_synthetic issue on v11.x 2019-02-06 21:00:37 +01:00
esm.md doc: fix file extension on ESM file example 2019-01-27 13:26:50 +02:00
events.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
fs.md doc: update behaviour of fs.writeFile 2019-01-08 00:02:02 +01:00
globals.md doc: hyperlink reference to process.nextTick 2019-01-21 11:30:45 -08:00
http2.md doc: add authority and scheme psuedo headers 2018-12-05 21:49:09 +02:00
http.md http: return HTTP 431 on HPE_HEADER_OVERFLOW error 2019-02-01 19:48:23 +01:00
https.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
index.md doc: add node-report documentation 2019-01-18 10:35:55 +05:30
inspector.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
intl.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
modules.md doc: make modules.md more accurate 2019-01-08 01:16:51 +02:00
n-api.md n-api: mark thread-safe function as stable 2019-01-21 22:30:11 -08:00
net.md doc: clarify timing of socket.connecting 2019-01-08 19:54:53 -08:00
os.md doc: document os.userInfo() throwing SystemError 2019-02-03 13:44:06 +02:00
path.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
perf_hooks.md perf_hooks: implement histogram based api 2019-02-08 09:20:18 -08:00
policy.md doc: fix metadata for v11.8.0 doc changes 2019-01-25 19:09:26 -08:00
process.md doc: fix metadata for v11.8.0 doc changes 2019-01-25 19:09:26 -08:00
punycode.md doc: prevent some redirections 2018-07-14 22:57:03 +03:00
querystring.md doc: remove redundant 'Example:' and similar notes 2018-08-29 16:53:03 +03:00
readline.md 2018-12-07, Version 11.4.0 (Current) 2018-12-07 18:50:20 +01:00
repl.md repl: improve doc for disabling REPL history on Windows 2019-01-26 03:12:50 +02:00
report.md report: include information about event loop itself 2019-02-06 15:36:24 +01:00
stream.md doc: reword stream docs to clarify that decodeStrings encodes strings 2019-01-20 22:58:38 +02:00
string_decoder.md string_decoder: support typed array or data view 2018-09-17 17:48:44 +02:00
synopsis.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
timers.md timers: truncate decimal values 2019-01-28 16:25:07 -08:00
tls.md tls: introduce client 'session' event 2019-02-01 19:06:58 -08:00
tracing.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
tty.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
url.md doc: list all versions WHATWG URL api was added 2018-12-05 15:08:38 -08:00
util.md 2019-01-17, Version 11.7.0 (Current), @BridgeAR 2019-01-18 14:03:19 +01:00
v8.md doc: fix, unify, formalize, and amplify vm.md 2019-01-11 22:21:44 +02:00
vm.md doc: fix section order in vm.md 2019-01-14 09:36:41 +01:00
worker_threads.md doc: document uniqueness of worker.threadId 2019-01-29 13:22:44 +01:00
zlib.md 2019-01-17, Version 11.7.0 (Current), @BridgeAR 2019-01-18 14:03:19 +01:00