tools/android/appstats.py
def __QueryShowmap(adb, pid):
    """Attempts to query graphics memory via the 'showmap' command.  It will
    look for |self.__SHOWMAP_KEY_MATCHES| entries to try to find one that
    represents the graphics memory usage.  Will return this as a single entry
    array of [ Graphics ].  If not found, will return [ 0 ]."""
    try:
      mem_lines = adb.RunShellCommand(['showmap', '-t', pid], check_return=True)
      for line in mem_lines:
        match = re.split('[ ]+', line.strip())
        if match[-1] in GraphicsHelper.__SHOWMAP_KEY_MATCHES:
          return [ round(float(match[2]) / 1000.0, 2) ]
    except device_errors.AdbShellCommandFailedError:
      pass
    return [ 0 ]
Attempts to query graphics memory via the 'showmap' command.  It will
    look for |self.__SHOWMAP_KEY_MATCHES| entries to try to find one that
    represents the graphics memory usage.  Will return this as a single entry
    array of [ Graphics ].  If not found, will return [ 0 ].
Attempts to query graphics memory via the 'showmap' command.  It will
look for |self.__SHOWMAP_KEY_MATCHES| entries to try to find one that
represents the graphics memory usage.  Will return this as a single entry
array of [ Graphics ].  If not found, will return [ 0 ].
Attempts to query graphics memory via the ' showmap ' command . It will look for |self . __SHOWMAP_KEY_MATCHES| entries to try to find one that represents the graphics memory usage . Will return this as a single entry array of [ Graphics ] . If not found will return [ 0 ] .
def __QueryShowmap(adb, pid):
    try:
      mem_lines = adb.RunShellCommand(['showmap', '-t', pid], check_return=True)
      for line in mem_lines:
        match = re.split('[ ]+', line.strip())
        if match[-1] in GraphicsHelper.__SHOWMAP_KEY_MATCHES:
          return [ round(float(match[2]) / 1000.0, 2) ]
    except device_errors.AdbShellCommandFailedError:
      pass
    return [ 0 ]
def __QueryShowmap ( adb , pid ) : try : mem_lines = adb . RunShellCommand ( [ 'showmap' , '-t' , pid ] , check_return = True ) for line in mem_lines : match = re . split ( '[ ]+' , line . strip ( ) ) if match [ - 1 ] in GraphicsHelper . __SHOWMAP_KEY_MATCHES : return [ round ( float ( match [ 2 ] ) / 1000.0 , 2 ) ] except device_errors . AdbShellCommandFailedError : pass return [ 0 ]
Attempts to query graphics memory via the 'showmap' command.
Attempts to query graphics memory via the ' showmap ' command .
"""Attempts to query graphics memory via the 'showmap' command.  It will
    look for |self.__SHOWMAP_KEY_MATCHES| entries to try to find one that
    represents the graphics memory usage.  Will return this as a single entry
    array of [ Graphics ].  If not found, will return [ 0 ]."""
adb
pid