Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

memory([freeMemory=boolean], [heapMemory=boolean], [kiloByte=boolean], [megaByte=boolean], [pageFaults=boolean], [pageReclaims=boolean], [physicalMemory=boolean], [summary=boolean], [swapFree=boolean], [swapLogical=boolean], [swapMax=boolean], [swapPhysical=boolean], [swapVirtual=boolean], [swaps=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

memory is undoable, NOT queryable, and NOT editable.

Used to query essential statistics on memory availability and usage

Return value

None

Flags

freeMemory, heapMemory, kiloByte, megaByte, pageFaults, pageReclaims, physicalMemory, summary, swapFree, swapLogical, swapMax, swapPhysical, swapVirtual, swaps
Long name (short name) Argument types Properties
megaByte(mb) boolean create
Defines the units to use for value displayed, megaByte 1024*1024
kiloByte(kb) boolean create
Defines the units to use for value displayed, kiloByte 1024
heapMemory(he) boolean create
Returns size of memory heap
freeMemory(fr) boolean create
Returns size of free memory
physicalMemory(phy) boolean create
Returns size of physical memory
pageFaults(pf) boolean create
Returns number of page faults
pageReclaims(pr) boolean create
Returns number of page reclaims
summary(sum) boolean create
Returns summary of memory usage
swaps(sw) boolean create
Returns number of swaps
swapFree(swf) boolean create
Returns size of free swap
swapMax(swm) boolean create
Returns maximum swap size
swapVirtual(swv) boolean create
Returns size of virtual swap
swapPhysical(swp) boolean create
Returns size of physical swap
swapLogical(swl) boolean create
Returns size of logical swap

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.memory(fr=True)