def __init__(self, appname, interval=2):
        """
        Start memory and CPU monitoring, with the time interval between
        each process scan

        @param appname: Process name, ex: firefox-bin.
        @type appname: string
        @param interval: Time interval between each process scan
        @type interval: float
        """
        if not importPsUtil:
            raise LdtpServerException('python-psutil package is not installed')
        threading.Thread.__init__(self)
        self._appname = appname
        self._interval = interval
        self._stop = False
        self.running = True
def __init__ ( self , appname , interval = 2 ) : if not importPsUtil : raise LdtpServerException ( 'python-psutil package is not installed' ) threading . Thread . __init__ ( self ) self . _appname = appname self . _interval = interval self . _stop = False self . running = True
Start memory and CPU monitoring, with the time interval between
        each process scan

        @param appname: Process name, ex: firefox-bin.
        @type appname: string
        @param interval: Time interval between each process scan
        @type interval: float