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

is it possible to list thread list in tree mode? #30

Closed
TangHuanan opened this issue Nov 21, 2019 · 5 comments
Closed

is it possible to list thread list in tree mode? #30

TangHuanan opened this issue Nov 21, 2019 · 5 comments

Comments

@TangHuanan
Copy link

No description provided.

@dalance
Copy link
Owner

dalance commented Nov 21, 2019

No, procs doesn't have thead information.
What kind of information do you expect?

@TangHuanan
Copy link
Author

thread name, cpu usage, status ...

@wdv4758h
Copy link

I find myself need threads info in some cases. For example, if a program launch multiple threads and each thread has specific name related to the actions, then I can know which thread is using the most resource. What I'm using now is ps -T, and combine with more options to become like ps -Tao pcpu,pmem,tid,comm.

(I'm considering Linux, since that's what I'm using)

I do love the rest part of procs, it works nicely :)

dalance added a commit that referenced this issue Jan 28, 2021
@dalance
Copy link
Owner

dalance commented Jan 28, 2021

Sorry it took so long.
I added thread support, and released v0.11.1.

By default, thread is shown in tree mode.
If --thread is specified, thread is shown in normal mode too.

The PID of thread is surrounded by [].
This feature is depended on procfs, so macOS and Windows are not supported.

image

@wdv4758h
Copy link

Thanks!!!
I was thinking to spend some time adding it, but you've added it in already. Awesome!

@dalance dalance closed this as completed Feb 3, 2021
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

3 participants