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

Allow to rename thread in RealtimePublisher #176

Open
roncapat opened this issue Oct 29, 2024 · 1 comment
Open

Allow to rename thread in RealtimePublisher #176

roncapat opened this issue Oct 29, 2024 · 1 comment

Comments

@roncapat
Copy link

At least in Linux, it is possible to rename a thread, via calls like ptrhead_setname_np.

For application featuring many RealtimePublishers and many other threads, diving into perf record outputs (e.g. via hotspot tool) is difficult because by default all threads have the same name (First 15 characters of the process name), and thread renaming is a powerful tool to discriminate at a glance which thread does what.

To allow this, either the implementation of RealtimePublisher shall permit to obtain the native handle (see this) or may enable for Linux only an additional method that uses pthread_setname_np.

I can submit a PR depending on maintainers feedback of course 👍🏻

@christophfroehlich
Copy link
Contributor

@saikishor what do you think?

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

No branches or pull requests

2 participants