tools/android/appstats.py
def __QueryNvMap(adb, pid):
    """Attempts to query graphics memory via the NV file map method.  It will
    find a possible NV Map file from |self.__NvMapPath| and try to parse the
    graphics memory from it.  Will return this as a single entry array of
    [ Graphics ].  If not found, will return [ 0 ]."""
    nv_file = GraphicsHelper.__NvMapPath(adb)
    if nv_file:
      mem_lines = adb.ReadFile(nv_file).splitlines()
      for line in mem_lines:
        match = re.split(' +', line.strip())
        if match[2] == pid:
          return [ round(float(match[3]) / 1000000.0, 2) ]
    return [ 0 ]
Attempts to query graphics memory via the NV file map method.  It will
    find a possible NV Map file from |self.__NvMapPath| and try to parse the
    graphics memory from it.  Will return this as a single entry array of
    [ Graphics ].  If not found, will return [ 0 ].
Attempts to query graphics memory via the NV file map method.  It will
find a possible NV Map file from |self.__NvMapPath| and try to parse the
graphics memory from it.  Will return this as a single entry array of
[ Graphics ].  If not found, will return [ 0 ].
Attempts to query graphics memory via the NV file map method . It will find a possible NV Map file from |self . __NvMapPath| and try to parse the graphics memory from it . Will return this as a single entry array of [ Graphics ] . If not found will return [ 0 ] .
def __QueryNvMap(adb, pid):
    nv_file = GraphicsHelper.__NvMapPath(adb)
    if nv_file:
      mem_lines = adb.ReadFile(nv_file).splitlines()
      for line in mem_lines:
        match = re.split(' +', line.strip())
        if match[2] == pid:
          return [ round(float(match[3]) / 1000000.0, 2) ]
    return [ 0 ]
def __QueryNvMap ( adb , pid ) : nv_file = GraphicsHelper . __NvMapPath ( adb ) if nv_file : mem_lines = adb . ReadFile ( nv_file ) . splitlines ( ) for line in mem_lines : match = re . split ( ' +' , line . strip ( ) ) if match [ 2 ] == pid : return [ round ( float ( match [ 3 ] ) / 1000000.0 , 2 ) ] return [ 0 ]
Attempts to query graphics memory via the NV file map method.
Attempts to query graphics memory via the NV file map method .
"""Attempts to query graphics memory via the NV file map method.  It will
    find a possible NV Map file from |self.__NvMapPath| and try to parse the
    graphics memory from it.  Will return this as a single entry array of
    [ Graphics ].  If not found, will return [ 0 ]."""
adb
pid