I have written a performance monitor function in Python using psutil to measure CPU, GPU, and Disk I/O for benchmarking another application. It worked great in my
psutil