android_webview/tools/run_simpleperf.py
def CollectAddresses(lines, lib_name):
    """Collect address-looking texts from lines.

    Args:
      lines: A list of strings that may contain addresses.
      lib_name: The name of the WebView library.

    Returns:
      A set containing the addresses that were found in the lines.
    """
    addresses = set()
    for line in lines:
      for address in re.findall(lib_name + r'\[\+([0-9a-f]+)\]', line):
        addresses.add(address)
    return addresses
Collect address-looking texts from lines.

    Args:
      lines: A list of strings that may contain addresses.
      lib_name: The name of the WebView library.

    Returns:
      A set containing the addresses that were found in the lines.
    
Collect address-looking texts from lines.
Collect address - looking texts from lines .
def CollectAddresses(lines, lib_name):
    addresses = set()
    for line in lines:
      for address in re.findall(lib_name + r'\[\+([0-9a-f]+)\]', line):
        addresses.add(address)
    return addresses
def CollectAddresses ( lines , lib_name ) : addresses = set ( ) for line in lines : for address in re . findall ( lib_name + r'\[\+([0-9a-f]+)\]' , line ) : addresses . add ( address ) return addresses
Collect address-looking texts from lines.
Collect address - looking texts from lines .
"""Collect address-looking texts from lines.

    Args:
      lines: A list of strings that may contain addresses.
      lib_name: The name of the WebView library.

    Returns:
      A set containing the addresses that were found in the lines.
    """
A set containing the addresses that were found in the lines.
A set containing the addresses that were found in the lines .
lines
A list of strings that may contain addresses.
A list of strings that may contain addresses .
lib_name
The name of the WebView library.
The name of the WebView library .