Mar-31-2018, 07:02 PM
Hello!
I have 3 solutions to the problem. I would like to choose the best one and present it (so make it sexy and verifiable). I use
What I would like to have looks like that:
I have 3 solutions to the problem. I would like to choose the best one and present it (so make it sexy and verifiable). I use
memory_profiler
to see amount of memory that is in use now, but it shows me all the mem consumption line-by-line.What I would like to have looks like that:
from SomeMemModule import CurrentBytesInUse start_mem = CurrentBytesInUse() # alloc mem and run algo print ('Algo uses %d bytes of mem' % (CurrentBytesInUse() - start_mem) ) # dealloc memIs there any easy way available? Thank you in advance!