I am looking to measure execution time and memory consumption of a given instruction in the debug console of my python code. Ideally I would be able to use something similar to