4.2 Get resource usage of process

Module: sage.misc.getusage

Author: William Stein (2006-03-04): initial versoin

Module-level Functions

VmB( VmKey)

get_memory_usage( [t=None])

Return memory usage.

INPUT:
    t -- None or output of previous call; (only used on Linux)

OUTPUT:
    * Linux -- Returns float number (in megabytes)
    * OS X -- returns string (VSIZE column of top)
    * other -- not implemented for any other operating systems

linux_memory_usage( )

Return memory usage in megabytes.

top( )

Return the top output line that contains this running SAGE process.

See About this document... for information on suggesting changes.