Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Ijaz Sheikh <ofrobots@google.com>2018-01-17 04:13:36 +0300
committerAli Ijaz Sheikh <ofrobots@google.com>2018-01-24 20:58:28 +0300
commit98d9540dd7a7aa2e612f16caeea6e57d56ed9f12 (patch)
treec6549e3b67faca9d1d87938f511e5054d73ff27b /doc/api/tracing.md
parent51054dac541cdefabe54a076f009ebf4c3c5d144 (diff)
src: use uv_hrtime as tracing timestamp
Override the V8 TracingController to provide uv_hrtime based timestamps. This allows tracing timestamps to be comparable with process.hrtime timestamps. Fixes: https://github.com/nodejs/node/issues/17349 PR-URL: https://github.com/nodejs/node/pull/18196 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Diffstat (limited to 'doc/api/tracing.md')
-rw-r--r--doc/api/tracing.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/tracing.md b/doc/api/tracing.md
index e03477b1adf..fbfa2941eff 100644
--- a/doc/api/tracing.md
+++ b/doc/api/tracing.md
@@ -19,3 +19,7 @@ node --trace-events-enabled --trace-event-categories v8,node,node.async_hooks se
Running Node.js with tracing enabled will produce log files that can be opened
in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool)
tab of Chrome.
+
+Starting with Node 10.0.0, the tracing system uses the same time source as the
+one used by `process.hrtime()` however the trace-event timestamps are expressed
+in microseconds, unlike `process.hrtime()` which returns nanoseconds.