-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
misc: implement uv_getrusage_thread #4666
base: v1.x
Are you sure you want to change the base?
Conversation
cda19f0
to
535f95f
Compare
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.
I believe it's possible to get the relevant info out of xnu with proc_pidinfo(PROC_PIDTHREADID64INFO)
and I think (but am not 100% sure) you can obtain the thread id with pthread_threadid_np()
.
(I wrote some code to that effect years ago but I don't have macOS at hand to test on.)
535f95f
to
83c222f
Compare
This new revision address all your comments and adds support for macOS. |
1f1b9f1
to
b0fcbaf
Compare
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.
Good work!
b0fcbaf
to
6a6fd0b
Compare
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.
LGTM with a suggestion.
Refs: libuv#3119 Co-authored-by: Juan José Arboleda <[email protected]> Signed-off-by: Juan José Arboleda <[email protected]>
6a6fd0b
to
db3f686
Compare
Refs: #3119
This is #3120 with all comments addressed and tested on Linux, FreeBSD and macOS