Lazy Profiler is a simple utility to collect CPU, GPU, RAM and GPU Memory stats while the program is running.
Use the package manager pip to install foobar.
pip install lazyprofiler
import lazyprofiler.GetStats as gs
pid = gs.start_log("test")
"""
Do something in between
"""
gs.stop_log(pid=pid)
gs.plot_stats('test')
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.