doc: update trace events categories description
PR-URL: https://github.com/nodejs/node/pull/20092 Fixes: https://github.com/nodejs/node/issues/16315 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
1c66a10a0c
commit
8b012e1464
@ -13,15 +13,17 @@ a list of comma-separated category names.
|
|||||||
|
|
||||||
The available categories are:
|
The available categories are:
|
||||||
|
|
||||||
* `node`
|
* `node` - An empty placeholder.
|
||||||
* `node.async_hooks` - Enables capture of detailed async_hooks trace data.
|
* `node.async_hooks` - Enables capture of detailed [async_hooks] trace data.
|
||||||
|
The [async_hooks] events have a unique `asyncId` and a special triggerId
|
||||||
|
`triggerAsyncId` property.
|
||||||
* `node.bootstrap` - Enables capture of Node.js bootstrap milestones.
|
* `node.bootstrap` - Enables capture of Node.js bootstrap milestones.
|
||||||
* `node.perf` - Enables capture of [Performance API] measurements.
|
* `node.perf` - Enables capture of [Performance API] measurements.
|
||||||
* `node.perf.usertiming` - Enables capture of only Performance API User Timing
|
* `node.perf.usertiming` - Enables capture of only Performance API User Timing
|
||||||
measures and marks.
|
measures and marks.
|
||||||
* `node.perf.timerify` - Enables capture of only Performance API timerify
|
* `node.perf.timerify` - Enables capture of only Performance API timerify
|
||||||
measurements.
|
measurements.
|
||||||
* `v8`
|
* `v8` - The [V8] events are GC, compiling, and execution related.
|
||||||
|
|
||||||
By default the `node`, `node.async_hooks`, and `v8` categories are enabled.
|
By default the `node`, `node.async_hooks`, and `v8` categories are enabled.
|
||||||
|
|
||||||
@ -193,3 +195,5 @@ console.log(trace_events.getEnabledCategories());
|
|||||||
```
|
```
|
||||||
|
|
||||||
[Performance API]: perf_hooks.html
|
[Performance API]: perf_hooks.html
|
||||||
|
[V8]: v8.html
|
||||||
|
[async_hooks]: async_hooks.html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user