# Module e.c.u.resources

Part of elisa.core.utils

Unix specific resource informations

Line # | Kind | Name | Docs
--- | --- | --- | ---
27 | Function | memory | Return memory status for the current process.
62 | Function | file_descriptors | Return the list of file descriptors opened by the current process.
84 | Function | threads | Return the number of threads of the current process.

def memory(key='total', unit='pages'):
Return memory status for the current process. Figures are returned in number of pages.

Parameters | key | which memory type to ask for; possible values are 'total', 'resident', 'share', 'text', 'lib' and 'data'. (type: string )
Returns | (type: int )

def file_descriptors():
Return the list of file descriptors opened by the current process.

Returns | (type: list of string )

def threads():
Return the number of threads of the current process.

Returns | (type: int )