Ejemplo n.º 1
0
  def GetPsOutput(self, columns, pid=None):
    """Returns output of the 'ps' command as a list of lines.
    Subclass should override this function.

    Args:
      columns: A list of require columns, e.g., ['pid', 'pss'].
      pid: If not None, returns only the information of the process
         with the pid.
    """
    return ps_util.GetPsOutputWithPlatformBackend(self, columns, pid)
Ejemplo n.º 2
0
 def GetPsOutput(self, columns, pid=None):
     return ps_util.GetPsOutputWithPlatformBackend(self, columns, pid)