Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Memory Measurement & Optimization >

MaxMemoryUsed

MaxMemoryUsed[]
gives the maximum number of bytes used to store all data for the current Mathematica session.
  • On most computer systems, MaxMemoryUsed[] will give results close to those obtained from external process status requests.
  • MaxMemoryUsed[] will not typically account for code space, stack space or the effects of heap fragmentation.
Show the maximum memory used during a session:
In[1]:=
Click for copyable input
Out[1]=
 
See how much the maximum memory used increased for a computation:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 1
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team