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

Can we have filtered processes? #1

Open
jasonwilliams opened this issue Sep 18, 2023 · 4 comments
Open

Can we have filtered processes? #1

jasonwilliams opened this issue Sep 18, 2023 · 4 comments

Comments

@jasonwilliams
Copy link

Hey there!

This is a great idea as a workaround for the vadimcn/codelldb#317 issue. Sadly large applications like Chromium do spawn a lot of processes and end up crashing the whole thing. I wonder though, if its possible to have a filter of some sort, where it can only connect to a process that passes a glob or something. This would reduce the amount of process it connects to, and only connects to ones I care about.

I don't know if the underlying ps-tree exposes the process name, so it may be difficult to implement if it doesn't.

@thebestnom
Copy link
Owner

It does have a name, and also I checked and psNode have a better api and can filter based on a lot of things including parent process so maybe replacing ps-tree with ps-node is the way to go

@jasonwilliams
Copy link
Author

jasonwilliams commented Sep 19, 2023

psNode lets you look up a process, I don’t know if it gives you all child processes from a parent though?

@jasonwilliams
Copy link
Author

Awesome!

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