12.3 Get resource usage of process

Module: sage.misc.getusage

Get resource usage of process

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

Module-level Functions

VmB( VmKey)

Function used internally by this module.

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.