Package elisa :: Package core :: Package utils :: Module resources
[hide private]
[frames] | no frames]

Module resources

source code

Functions [hide private]
int
memory(key='total')
Return memory status for the current process.
source code
list of string
file_descriptors()
Return the list of file descriptors opened by the current process.
source code
int
threads()
Return the number of threads of the current process.
source code
Function Details [hide private]

memory(key='total')

source code 
Return memory status for the current process. Figures are returned in number of pages.
Parameters:
  • key (string) - which memory type to ask for; possible values are 'total', 'resident', 'share', 'text', 'lib' and 'data'.
Returns: int