MaxMemoryUsed

MaxMemoryUsed[]

gives the maximum number of bytes used to store all data for the current Wolfram System session.

MaxMemoryUsed[expr]

gives the maximum number of bytes used during the evaluation of expr.

Details

  • 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.

Examples

Basic Examples  (2)

Show the maximum memory used during a session:

See how much the maximum memory used increased for a computation:

Wolfram Research (1988), MaxMemoryUsed, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxMemoryUsed.html.

Text

Wolfram Research (1988), MaxMemoryUsed, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxMemoryUsed.html.

CMS

Wolfram Language. 1988. "MaxMemoryUsed." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MaxMemoryUsed.html.

APA

Wolfram Language. (1988). MaxMemoryUsed. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MaxMemoryUsed.html

BibTeX

@misc{reference.wolfram_2024_maxmemoryused, author="Wolfram Research", title="{MaxMemoryUsed}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/MaxMemoryUsed.html}", note=[Accessed: 02-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_maxmemoryused, organization={Wolfram Research}, title={MaxMemoryUsed}, year={1988}, url={https://reference.wolfram.com/language/ref/MaxMemoryUsed.html}, note=[Accessed: 02-November-2024 ]}