tools/mac/power/driver.py
def GetAllPids(self, browser_process):
    """Get the pids for the browser and all children. w

    Args:
      browser_process: A psutil.Process object associated with the
      browser process.

    Returns:
      A list of pids as integers.
    """

    pids = [browser_process.pid]
    try:
      children = browser_process.children(recursive=True)
    except psutil.NoSuchProcess:
      return []

    for child in children:
      pids.append(child.pid)

    return pids
Get the pids for the browser and all children. w

    Args:
      browser_process: A psutil.Process object associated with the
      browser process.

    Returns:
      A list of pids as integers.
    
Get the pids for the browser and all children. w
Args:
browser_process: A psutil.Process object associated with the
browser process.

A list of pids as integers.
Get the pids for the browser and all children . w Args : browser_process : A psutil . Process object associated with the browser process . A list of pids as integers .
def GetAllPids(self, browser_process):
    pids = [browser_process.pid]
    try:
      children = browser_process.children(recursive=True)
    except psutil.NoSuchProcess:
      return []
    for child in children:
      pids.append(child.pid)
    return pids
def GetAllPids ( self , browser_process ) : pids = [ browser_process . pid ] try : children = browser_process . children ( recursive = True ) except psutil . NoSuchProcess : return [ ] for child in children : pids . append ( child . pid ) return pids
Get the pids for the browser and all children.
Get the pids for the browser and all children .
"""Get the pids for the browser and all children. w

    Args:
      browser_process: A psutil.Process object associated with the
      browser process.

    Returns:
      A list of pids as integers.
    """
self
browser_process