diff options
author | James M Snell <jasnell@gmail.com> | 2018-10-16 13:57:24 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-10-18 15:00:29 -0700 |
commit | 9c82a1e7ba8d5ce7e743f99348cf992965594f0a (patch) | |
tree | 0798e31149661c2d29181fd1beb14dc4958027d0 /doc | |
parent | bf7ed80475cfa7ae1ab6086c325f57557b75dffe (diff) | |
download | android-node-v8-9c82a1e7ba8d5ce7e743f99348cf992965594f0a.tar.gz android-node-v8-9c82a1e7ba8d5ce7e743f99348cf992965594f0a.tar.bz2 android-node-v8-9c82a1e7ba8d5ce7e743f99348cf992965594f0a.zip |
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')
-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 d58079360a..04db3f12f4 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. |