diff options
author | James M Snell <jasnell@gmail.com> | 2018-10-16 23:57:24 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-10-19 01:00:29 +0300 |
commit | 9c82a1e7ba8d5ce7e743f99348cf992965594f0a (patch) | |
tree | 0798e31149661c2d29181fd1beb14dc4958027d0 /doc/api/tracing.md | |
parent | bf7ed80475cfa7ae1ab6086c325f57557b75dffe (diff) |
console: add trace-events for time and count
Add the `node.console` trace event category to capture
`console.count()`, `console.countReset()`, `console.time()`,
`console.timeLog()`, and `console.timeEnd()` to the trace
event log.
PR-URL: https://github.com/nodejs/node/pull/23703
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'doc/api/tracing.md')
-rw-r--r-- | doc/api/tracing.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/tracing.md b/doc/api/tracing.md index d58079360a0..04db3f12f42 100644 --- a/doc/api/tracing.md +++ b/doc/api/tracing.md @@ -18,6 +18,8 @@ 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.console` - Enables capture of `console.time()` and `console.count()` + output. * `node.environment` - Enables capture of Node.js Environment milestones. * `node.fs.sync` - Enables capture of trace data for file system sync methods. * `node.perf` - Enables capture of [Performance API] measurements. |