-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] CPU/memory usage per func class (#31234)
Signed-off-by: SangBin Cho <rkooo567@gmail.com> This PR replaces the "Component" label for memory / CPU usage to the proc name of worker processes. E.g., instead of "workers", we use "ray::IDLE" or "ray::Actor". This PR also adds the per component CPU usage. I found the original code has a bug, so I fixed it (when cpu_percent is first called from psutil.Process, it is always 0, and then whenever we calculate the CPU usage, we create a new psutil.Process. So it is always 0.) Note that most of code change is from the tests (the actual code for the feature is around 100~150 lines).
- Loading branch information
1 parent
ffb6711
commit eb63524
Showing
5 changed files
with
493 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.