summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-08-01 19:01:14 -0700
committerJames M Snell <jasnell@gmail.com>2018-08-07 07:43:18 -0700
commit080316b32a0e6320e012214c32725099a0248de6 (patch)
tree8f9d6047d172e0e83c1a7a740ce3a6a2e11d26eb /doc
parentfe069cca6a87bcbc7030e8a1e631a81ba8c49580 (diff)
downloadandroid-node-v8-080316b32a0e6320e012214c32725099a0248de6.tar.gz
android-node-v8-080316b32a0e6320e012214c32725099a0248de6.tar.bz2
android-node-v8-080316b32a0e6320e012214c32725099a0248de6.zip
trace_events: add node.promises category, rejection counter
Allow the trace event log to include a count of unhandled rejections and handled after rejections. This is useful primarily as a quick check to see if rejections may be going unhandled (and unnoticed in a process). PR-URL: https://github.com/nodejs/node/pull/22124 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/tracing.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/tracing.md b/doc/api/tracing.md
index ca91b8aac7..e067760643 100644
--- a/doc/api/tracing.md
+++ b/doc/api/tracing.md
@@ -18,12 +18,14 @@ The available categories are:
The [`async_hooks`] events have a unique `asyncId` and a special `triggerId`
`triggerAsyncId` property.
* `node.bootstrap` - Enables capture of Node.js bootstrap milestones.
+* `node.fs.sync` - Enables capture of trace data for file system sync methods.
* `node.perf` - Enables capture of [Performance API] measurements.
* `node.perf.usertiming` - Enables capture of only Performance API User Timing
measures and marks.
* `node.perf.timerify` - Enables capture of only Performance API timerify
measurements.
-* `node.fs.sync` - Enables capture of trace data for file system sync methods.
+* `node.promises.rejections` - Enables capture of trace data tracking the number
+ of unhandled Promise rejections and handled-after-rejections.
* `node.vm.script` - Enables capture of trace data for the `vm` module's
`runInNewContext()`, `runInContext()`, and `runInThisContext()` methods.
* `v8` - The [V8] events are GC, compiling, and execution related.