tools/android/native_lib_memory/extract_resident_pages.py
def _GetResidentPagesJSON(pages_list):
  """Transforms the pages list to JSON object.

  Args:
    pages_list: (list) As returned by ParseResidentPages()

  Returns:
    (JSON object) Pages JSON object.
  """
  json_data = []
  for i in range(len(pages_list)):
    json_data.append({'page_num': i, 'resident': pages_list[i]})
  return json_data
Transforms the pages list to JSON object.

  Args:
    pages_list: (list) As returned by ParseResidentPages()

  Returns:
    (JSON object) Pages JSON object.
  
Transforms the pages list to JSON object.
Transforms the pages list to JSON object .
def _GetResidentPagesJSON(pages_list):
  json_data = []
  for i in range(len(pages_list)):
    json_data.append({'page_num': i, 'resident': pages_list[i]})
  return json_data
def _GetResidentPagesJSON ( pages_list ) : json_data = [ ] for i in range ( len ( pages_list ) ) : json_data . append ( { 'page_num' : i , 'resident' : pages_list [ i ] } ) return json_data
Transforms the pages list to JSON object.
Transforms the pages list to JSON object .
"""Transforms the pages list to JSON object.

  Args:
    pages_list: (list) As returned by ParseResidentPages()

  Returns:
    (JSON object) Pages JSON object.
  """
(JSON object) Pages JSON object.
( JSON object ) Pages JSON object .
pages_list
(list) As returned by ParseResidentPages()
( list ) As returned by ParseResidentPages ()