tools/android/native_lib_memory/parse_smaps.py
def _GetPageTableFootprint(device, pid):
  """Returns the page table footprint for a process in kiB."""
  command = ['cat', '/proc/%d/status' % pid]
  lines = device.RunShellCommand(command, check_return=True)
  for line in lines:
    if line.startswith('VmPTE:'):
      value = int(line[len('VmPTE: '):line.index('kB')])
      return value
Returns the page table footprint for a process in kiB.
Returns the page table footprint for a process in kiB.
Returns the page table footprint for a process in kiB .
def _GetPageTableFootprint(device, pid):
  command = ['cat', '/proc/%d/status' % pid]
  lines = device.RunShellCommand(command, check_return=True)
  for line in lines:
    if line.startswith('VmPTE:'):
      value = int(line[len('VmPTE: '):line.index('kB')])
      return value
def _GetPageTableFootprint ( device , pid ) : command = [ 'cat' , '/proc/%d/status' % pid ] lines = device . RunShellCommand ( command , check_return = True ) for line in lines : if line . startswith ( 'VmPTE:' ) : value = int ( line [ len ( 'VmPTE: ' ) : line . index ( 'kB' ) ] ) return value
Returns the page table footprint for a process in kiB.
Returns the page table footprint for a process in kiB .
"""Returns the page table footprint for a process in kiB."""
device
pid