-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
rephrase API docs in tracing.md #35556
Conversation
ed2b9dd
to
8319d41
Compare
doc/api/tracing.md
Outdated
@@ -80,7 +80,7 @@ string that supports `${rotation}` and `${pid}`: | |||
node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js | |||
``` | |||
|
|||
Starting with Node.js 10.0.0, the tracing system uses the same time source | |||
Starting with Node.js v10.0.0, the tracing system uses the same time source |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We avoid the v
prefix in prose, see https://github.com/nodejs/node/blob/master/doc/guides/doc-style-guide.md.
- When referring to a version of Node.js in prose, use Node.js and the version
number. Do not prefix the version number with v in prose. This is to avoid
confusion about whether v8 refers to Node.js 8.x or the V8 JavaScript
engine.
- OK: Node.js 14.x, Node.js 14.3.1
- NOT OK: Node.js v14
doc/api/tracing.md
Outdated
Starting with Node.js v10.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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The addition of v
here violates our style guide as noted by @richardlau above. However, the text here could stand some other improvements:
- Might be a good idea to remove "Starting with Node.js 10.0.0". These docs are for a specific version of Node.js.
- The sentence is a run-on sentence. It would be better split into two sentences.
Starting with Node.js v10.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. | |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Trott - thanks for the review, I understand. I have followed your suggestions. Please have a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR-URL: nodejs#35556 Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Landed in ff4928f |
PR-URL: #35556 Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #35556 Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #35556 Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: nodejs#35556 Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes