(self)
Compare physical system memory to process resident memory
        (RSS) and calculate process memory utilization as a percentage.
Compare physical system memory to process resident memory
        (RSS) and calculate process memory utilization as a percentage.
Compare physical system memory to process resident memory ( RSS ) and calculate process memory utilization as a percentage .
def memory_percent(self):
        """Compare physical system memory to process resident memory
        (RSS) and calculate process memory utilization as a percentage.
        """
        rss = self._proc.memory_info()[0]
        # use cached value if available
        total_phymem = _TOTAL_PHYMEM or virtual_memory().total
        try:
            return (rss / float(total_phymem)) * 100
        except ZeroDivisionError:
            return 0.0
def memory_percent ( self ) : rss = self . _proc . memory_info ( ) [ 0 ] # use cached value if available total_phymem = _TOTAL_PHYMEM or virtual_memory ( ) . total try : return ( rss / float ( total_phymem ) ) * 100 except ZeroDivisionError : return 0.0