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

Add MacOS thread names #32

Merged
merged 21 commits into from
May 25, 2022
Merged

Add MacOS thread names #32

merged 21 commits into from
May 25, 2022

Conversation

Jake-Shadle
Copy link
Collaborator

I wanted to use proc_pidinfo for this since apparently it is possible, but was apparently missing something and the calls failed (maybe need to convert the mach port to a BSD/posix thread id?), so for now this uses the mach thread_info to retrieve the thread names.

Note this depends on a change to dump_syms that I noticed when testing, will file a PR for that now as well.

Resolves: #23

Copy link
Contributor

@gabrielesvelto gabrielesvelto left a comment

Choose a reason for hiding this comment

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

Looking good, requesting just a tiny change

src/mac/streams/thread_names.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@gabrielesvelto gabrielesvelto left a comment

Choose a reason for hiding this comment

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

LGTM!

@Jake-Shadle Jake-Shadle merged commit 624cdeb into main May 25, 2022
@Jake-Shadle Jake-Shadle deleted the macos-thread-names branch May 25, 2022 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MacOS follow up
2 participants