Is there a Python module that you can use to get execution stats for a piece of code or a python app ? For example something like:
get_stats.start()
#python code
stats = get_stats.end()
The stats I am interested in are cpu usage, ram usage and execution time
timeitmodule, for CPU/RAM usage I'd use an external program (e.g. Windows Task Manager, UNIX htop).