Skip to content

Add MacOS thread names#32

Merged
Jake-Shadle merged 21 commits intomainfrom
macos-thread-names
May 25, 2022
Merged

Add MacOS thread names#32
Jake-Shadle merged 21 commits intomainfrom
macos-thread-names

Conversation

@Jake-Shadle
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread src/mac/streams/thread_names.rs Outdated
Copy link
Copy Markdown
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