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

How to obseve nng threads on windows #1680

Closed
xinxinxiangying258 opened this issue Aug 22, 2023 · 3 comments
Closed

How to obseve nng threads on windows #1680

xinxinxiangying258 opened this issue Aug 22, 2023 · 3 comments

Comments

@xinxinxiangying258
Copy link

While using nng inside a project, I am confusing about how to obseve nng threads on windows.
Like the issue #1572 said, nng threads have different types.
But I cannot find any thread named like the elements of #1572 table no matter using Process Explorer or Powershell.

Is there any body could tell me how to obseve nng threads on windows? thx.❤

@gedalia
Copy link

gedalia commented Aug 22, 2023

A profiling tool like Tracy https://github.com/wolfpld/tracy can help visualize the thread usage (which is pretty bad and actually can break Tracy on a high core machine) there are others like superluminal https://superluminal.eu/ and optick https://github.com/bombomby/optick
I'm really hoping that there is a release with this fix soon, it makes nng really problematic to use in a whole class of applications.

@phsilva
Copy link
Contributor

phsilva commented Aug 23, 2023

I can't confirm, but apparently, Windows only shows thread names in certain places, like debuggers.

From[1], it says that you can inspect thread names in WinDbg or Windows Performance Analyzer [2], for instance.

A recent open question in some MS forums [3] indicates that this is really not present in Process Explorer, as I would expect.

[1] https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-set-a-thread-name-in-native-code?view=vs-2022
[2] https://learn.microsoft.com/en-us/windows-hardware/test/wpt/windows-performance-analyzer
[3] https://learn.microsoft.com/en-us/answers/questions/1341178/feature-request-show-thread-name-in-process-explor

This also answers your question in #1572 I think.

@gdamore
Copy link
Contributor

gdamore commented Sep 14, 2023

This is a question, and I'm not sure what the best answer is, as I'm not really a Windows guy. But as it's not related specifically to the code of NNG, I'm closing it. I hope the answers @phsilva provided were useful.

@gdamore gdamore closed this as completed Sep 14, 2023
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

4 participants