Solved by albanD in post #6 
              
              
                You can use regular python tools to check this as you are looking for cpu memory. 
For example, this memory profiler gives very nice outputs: https://pypi.org/project/memory-profiler/