tools/android/native_lib_memory/parse_smaps.py
def _ShowAllocatorFootprint(mappings, allocator):
  """Shows the total footprint from a specific allocator.

  Args:
    mappings: ([Mapping]) all process mappings.
    allocator: (str) Allocator name.
  """
  total_footprint = 0
  pathname = '[anon:%s]' % allocator
  for mapping in mappings:
    if mapping.pathname == pathname:
      total_footprint += _FootprintForAnonymousMapping(mapping)
  print('\tFootprint from %s: %d kB' % (allocator, total_footprint))
Shows the total footprint from a specific allocator.

  Args:
    mappings: ([Mapping]) all process mappings.
    allocator: (str) Allocator name.
  
Shows the total footprint from a specific allocator.
Shows the total footprint from a specific allocator .
def _ShowAllocatorFootprint(mappings, allocator):
  total_footprint = 0
  pathname = '[anon:%s]' % allocator
  for mapping in mappings:
    if mapping.pathname == pathname:
      total_footprint += _FootprintForAnonymousMapping(mapping)
  print('\tFootprint from %s: %d kB' % (allocator, total_footprint))
def _ShowAllocatorFootprint ( mappings , allocator ) : total_footprint = 0 pathname = '[anon:%s]' % allocator for mapping in mappings : if mapping . pathname == pathname : total_footprint += _FootprintForAnonymousMapping ( mapping ) print ( '\tFootprint from %s: %d kB' % ( allocator , total_footprint ) )
Shows the total footprint from a specific allocator.
Shows the total footprint from a specific allocator .
"""Shows the total footprint from a specific allocator.

  Args:
    mappings: ([Mapping]) all process mappings.
    allocator: (str) Allocator name.
  """
mappings
([Mapping]) all process mappings.
( [ Mapping ] ) all process mappings .
allocator
(str) Allocator name.
( str ) Allocator name .