In Mathematica, the command MaxMemoryUsed[computation] tells you what the largest usage of RAM was when executing some computation. Is there a similar comand in SageMath?