You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[core] Use psutil.process_iter to replace psutil.pids (ray-project#51123)
* Use `psutil.process_iter` to replace `psutil.pids`.
* Use `proc.info["name"]` instead of `proc.name()`.
* I'm not sure whether `proc.name()` uses the cache set by
`process_iter`, but I'm certain that using info is correct since the
official docs frequently use `proc.info[...]` with `process_iter`.
* I asked a question on giampaolo/psutil#2518,
but I'm not sure how long it will take to get an answer from the
community. For now, I think we can merge it, and I'll update the use of
psutil if the maintainers have any suggestions.
---------
Signed-off-by: kaihsun <[email protected]>
0 commit comments