PsParser

public class PsParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.PsParser


Utility used to parse(USER,PID and NAME) from the "ps" command output

Summary

Public constructors

PsParser()

Public methods

static List<ProcessInfo> getProcesses(String psOutput)

Parse username, process id and process name from the ps command output and convert to list of ProcessInfo objects.

Public constructors

PsParser

PsParser ()

Public methods

getProcesses

List<ProcessInfo> getProcesses (String psOutput)

Parse username, process id and process name from the ps command output and convert to list of ProcessInfo objects.

Parameters
psOutput String: output of "ps" command.

Returns
List<ProcessInfo> list of processInfo