Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update trace_event doc in tracing.md #20092

Closed
wants to merge 1 commit into from
Closed

doc: update trace_event doc in tracing.md #20092

wants to merge 1 commit into from

Conversation

BeniCheni
Copy link
Contributor

@BeniCheni BeniCheni commented Apr 17, 2018

Change title from tracing to trace_event in the documentation content. Update the description of node , node.async_hooks and v8 category to contain information highlighted in #16315.

Fixes: #16315

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

P.S.: After reading #16315, the the async_hooks and v8 documentations in details, I'm hoping to give this "good first issue" issue an attempt.

Thanks for your time to review in advance. Hoping the PR looks okay. Happy to update according to any review feedback. ✌️

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Apr 17, 2018
@BeniCheni BeniCheni changed the title doc: rename trace_event doc and update update content per #16315 doc: update trace_event doc in tracing.md Apr 17, 2018
@Trott
Copy link
Member

Trott commented Apr 17, 2018

@nodejs/documentation @nodejs/diagnostics

@vsemozhetbyt vsemozhetbyt added the trace_events Issues and PRs related to V8, Node.js core, and userspace code trace events. label Apr 17, 2018
@vsemozhetbyt

This comment has been minimized.

Copy link
Contributor

@vsemozhetbyt vsemozhetbyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the effort to make docs better!
I've left some comments about format nits)

* `node`
* `node.async_hooks` - Enables capture of detailed async_hooks trace data.
* `node` - is a placeholder. Doesn't actually contain anything.
* `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.
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt Apr 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In docs, lines are usually wrapped within 80 characters, otherwise, there will be doc linting issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsemozhetbyt, 🙏 for your advise. Learned make lint script and and updated according to linting.

* `node.bootstrap` - Enables capture of Node.js bootstrap milestones.
* `node.perf` - Enables capture of [Performance API] measurements.
* `node.perf.usertiming` - Enables capture of only Performance API User Timing
measures and marks.
* `node.perf.timerify` - Enables capture of only Performance API timerify
measurements.
* `v8`
* `v8` - The [v8] events are GC, compiling, and execution related.
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt Apr 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not in code fragment, the uppercased variant is preferred: [V8]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsemozhetbyt, after learning make lint script, updated to the uppercased variant, ✌️

@@ -14,15 +14,15 @@ names.

The available categories are:

* `node`
* `node.async_hooks` - Enables capture of detailed async_hooks trace data.
* `node` - is a placeholder. Doesn't actually contain anything.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is -> Is for consistency with other items?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just go with "An empty placeholder." maybe or something. Unless we have some rule about needing complete sentences...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apapirovski & @vsemozhetbyt, 👍& 🙏for both of your suggestions. Updated to go with "An empty placeholder.", as it seems "short and sweet" for now. Happy to do follow-up PR, if there's a new content for node.

@@ -1,4 +1,4 @@
# Tracing
# Trace Event
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trace Event -> Trace Events?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, events are plurals. Updated. 😅👶

@@ -48,4 +48,6 @@ as the one used by `process.hrtime()`
however the trace-event timestamps are expressed in microseconds,
unlike `process.hrtime()` which returns nanoseconds.

[Performance API]: perf_hooks.html
[async_hooks]: async_hooks.md
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt Apr 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As .md files are only sources for .html documents in https://nodejs.org/api/, links usually refer to HTML docs. Also, ASCII sorting in bottom references is preferred. So this fragment may be written in such way:

[Performance API]: perf_hooks.html
[V8]: v8.html
[async_hooks]: async_hooks.html

Copy link
Contributor Author

@BeniCheni BeniCheni Apr 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsemozhetbyt, learned the documentation scripts (i.e. make doc) & the built .html files' relationship to the docs, the interesting ASCII sorting preferences. Will keep that in mind going forward. 🙏for this piece of valuable review comment.

@BeniCheni
Copy link
Contributor Author

BeniCheni commented Apr 18, 2018

@vsemozhetbyt, really appreciate your time in the previous comments about format nits. I've updated, and tried my best to reply the each outdated comment accordingly, to "kind of" recap the educational takeaway from the review comments. 👨‍🎓Please have another quick review, when you have time. 👍

P.S.: I'm actually a mentee in the mentorship, awaiting to be paired with a mentor. So I just wanted to find a "good first time" labelled issue to try to contribute a "small" update, and learn the node.js ecosystem before the mentorship kicks in full gear. So really appreciate your patience about the format nits. 🙏

Copy link
Contributor

@vsemozhetbyt vsemozhetbyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc format LGTM)

@vsemozhetbyt

This comment has been minimized.

@vsemozhetbyt

This comment has been minimized.

@BeniCheni
Copy link
Contributor Author

@vsemozhetbyt , confirmed that my local master did not have the sync with upstream master. Once the local branches are sync'ed with upstream, the PR looked ok. Can you try the CI-lite build again? Thanks.

@vsemozhetbyt

This comment has been minimized.

@vsemozhetbyt

This comment has been minimized.

@BeniCheni
Copy link
Contributor Author

BeniCheni commented Apr 22, 2018

Hi, thanks for re-running CI-lite: https://ci.nodejs.org/job/node-test-pull-request-lite/549/.

Just a simple question to ensure I didn't get confused. Per previous note below, is there anything I can do to help make the CI-Lite passing and the lander successful? I'm happy to help out, if there's any thing I can do to help. Thank you!

"Memo: It seems the lander may need to eliminate 2 merge commits on landing)", is there anything I can help to make the lander pass CI-lite to land? (Just wanted to

@AyushG3112
Copy link
Contributor

AyushG3112 commented Apr 22, 2018

@BeniCheni if you could rebase your branch to the upstream master, as shown here, that would help.

@vsemozhetbyt
Copy link
Contributor

@BeniCheni It seems the rebase process is rather complicated in this case. I have tried to do this cloning your branch. If it is OK, I can push the result back and we will see if everything is OK. If something goes awry, you can just create a new PR with the same changes.

@BeniCheni
Copy link
Contributor Author

BeniCheni commented Apr 22, 2018

@ Trott,
@vsemozhetbyt, your plan sounds great. Thanks for your time. Please push the result back, and I’ll:

  1. look out for the “push” for the result back
  2. close this PR
  3. create a new PR for the same changes”.

@AyushG3112
Copy link
Contributor

@BeniCheni I think you might have @-tagged the wrong person

@BeniCheni
Copy link
Contributor Author

Corrected the previously wrong @ -tagged person.

@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Apr 22, 2018

@BeniCheni I've squashed all the commits in one and force-pushed in your branch. It seems everything is OK, but please, check if the changes are identical to yours intended, If they are, we may need another positive review for this and then land as is.

@vsemozhetbyt
Copy link
Contributor

@vsemozhetbyt
Copy link
Contributor

@trivikr Please, take a look if this is still good for you.

@BeniCheni
Copy link
Contributor Author

@vsemozhetbyt, I’ll reviewed and confirmed the changes are identical to mine intended.

@vsemozhetbyt
Copy link
Contributor

CI-lite is green 🎉, so let us wait for one more positive review and then land)

@trivikr
Copy link
Member

trivikr commented Apr 23, 2018

@vsemozhetbyt Looks good! 👍

vsemozhetbyt pushed a commit that referenced this pull request Apr 23, 2018
PR-URL: #20092
Fixes: #16315
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@vsemozhetbyt
Copy link
Contributor

Landed in 8b012e1
Thank you, @BeniCheni!

jasnell pushed a commit that referenced this pull request Apr 23, 2018
PR-URL: #20092
Fixes: #16315
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. trace_events Issues and PRs related to V8, Node.js core, and userspace code trace events.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants