-
Notifications
You must be signed in to change notification settings - Fork 55
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 support for threads count #57
Comments
wmic has the |
ps on AIX has the |
proc files have the |
Nice research! I agree this could be a nice addition! |
Can't find a nice way to do it with |
thcount seems available on linux |
Cool so the problem is only macOS :( |
I guess we could introduce this and set a default number for os x while we find a way to do this properly on os x. |
On macOS we need a custom ps command and a custom parsing function. |
Maybe we need to dig deeper into how the Activity Monitor does the thread count also. Sure dude, there's no rush in open source software :D. Good luck with your exams! |
that's cool! Could you check on os x if you have: |
On macOS there's no /proc folder sadly. |
Not sure that they actually use the number of threads :|. We won't be able to make this work without bindings. |
Would you consider adding this feature for Linux and Windows only? Related function can return -1 on macOS which would indicate that the platform is not supported. |
Example:
❯ ps M -p 2100 USER PID TT %CPU STAT PRI STIME UTIME COMMAND simonepri 2100 ?? 1.9 R 47T 0:01.72 0:18.31 /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal 2100 0.0 S 20T 0:00.00 0:00.00 2100 0.0 S 31T 0:00.00 0:00.00 2100 0.0 S 31T 0:00.54 0:00.33 2100 0.0 S 47T 0:00.92 0:00.56 2100 0.1 S 61T 0:00.00 0:00.03 2100 0.1 S 47T 0:00.00 0:00.02 2100 0.0 S 61T 0:00.00 0:00.01 2100 0.1 S 47T 0:00.00 0:00.01
To count them:
❯ ps M -p 2100 | wc -l 10
@soyuka any idea on how can we support this?
The text was updated successfully, but these errors were encountered: