FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

trace_events: move SetupTraceCategoryState into node_trace_events.cc by joyeecheung · Pull Request #25128 · nodejs/node · GitHub

/ node Public

trace_events: move SetupTraceCategoryState into node_trace_events.cc - #25128

Closed
joyeecheung wants to merge 2 commits into
nodejs:masterfrom
joyeecheung:move-trace-setup
Closed

trace_events: move SetupTraceCategoryState into node_trace_events.cc#25128
joyeecheung wants to merge 2 commits into
nodejs:masterfrom
joyeecheung:move-trace-setup

Conversation

Copy link
Copy Markdown
Member

It makes more sense to put it in internalBinding('trace_events')
instead of in the bootstrapper object.

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

It makes more sense to put it in `internalBinding('trace_events')`
instead of in the bootstrapper object.

Copy link
Copy Markdown
Collaborator

nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Dec 19, 2018

Copy link
Copy Markdown
Member Author

Comment thread lib/internal/bootstrap/node.js Outdated
const { traceCategoryState } = internalBinding('trace_events');
const {
traceCategoryState,
setupTraceCategoryState

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Could you use another name (avoid that of the current executing function)?

Copy link
Copy Markdown
Member Author

@targos Thanks for catching that, I updated the internal function name to setTraceCategoryStateUpdateHandler since that's what it actually does. PTAL.

joyeecheung added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Dec 19, 2018

Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Member Author

joyeecheung added a commit that referenced this pull request Dec 21, 2018
It makes more sense to put it in `internalBinding('trace_events')`
instead of in the bootstrapper object.

PR-URL: #25128
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

Copy link
Copy Markdown
Member Author

Landed in 70f2328, thanks!

Copy link
Copy Markdown
Contributor

This doesn't land cleanly on v11.x, should it be backported?

refack pushed a commit to refack/node that referenced this pull request Jan 14, 2019
It makes more sense to put it in `internalBinding('trace_events')`
instead of in the bootstrapper object.

PR-URL: nodejs#25128
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

Copy link
Copy Markdown
Member

This applies cleanly now.

addaleax pushed a commit that referenced this pull request Jan 14, 2019
It makes more sense to put it in `internalBinding('trace_events')`
instead of in the bootstrapper object.

PR-URL: #25128
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
BridgeAR mentioned this pull request Jan 16, 2019
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Jan 16, 2019
It makes more sense to put it in `internalBinding('trace_events')`
instead of in the bootstrapper object.

PR-URL: nodejs#25128
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins mentioned this pull request Jan 24, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants


Back | FazBrowse Home | New Git URL