LDTP  3.5.0
 All Pages
getmemorystat

Syntax

getmemorystat(<'process name'>)

Description

Get the current memory utilization of the given application

Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/utils.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/utils.py

Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/ProcessStats.cs

Return values
Returnslist of int values in MB(Memory utilization), of all the instance of given application

Example

from ldtp import *

getmemorystat('chromium-browser')

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project