Is there a good way to monitor the resources consumed (CPU usage, etc.) by a Keras model at inference time (or any other process) in Python? I am trying to monitor a process all along its execution. For example, I want to get the mean CPU usage of a process or sample the resources consumed by that process every 10 milliseconds (for example) until it finishes.
I was trying to use the library resource (resource.getrusage()), but as far as I have read, it only works in Unix-like OS.
Is there other way to do this with Python in a Windows OS system?
1.4m articles
1.4m replys
5 comments
57.0k users