Skip to content

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

@joyeecheung

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.
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
MemberAuthor

Comment threadlib/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.

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

@joyeecheung

Copy link
Copy Markdown
MemberAuthor

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

@joyeecheungjoyeecheung added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 19, 2018
@joyeecheung

Copy link
Copy Markdown
MemberAuthor

@joyeecheung

Copy link
Copy Markdown
MemberAuthor

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>
@joyeecheung

Copy link
Copy Markdown
MemberAuthor

Landed in 70f2328, thanks!

@MylesBorins

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>
@addaleax

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>
@BridgeARBridgeAR 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>
@MylesBorinsMylesBorins mentioned this pull request Jan 24, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, 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

@joyeecheung@nodejs-github-bot@MylesBorins@addaleax@jasnell@targos@richardlau@BethGriggs@BridgeAR