get cpu usage of a single python script code example
Example 1: how to measure how much your of cpu your program is using in python
$ pip install memory_profiler
Example 2: how to measure how much your of cpu your program is using in python
$ pip install line_profiler