TopHelper.TopReceiver

static class TopHelper.TopReceiver
extends MultiLineReceiver

java.lang.Object
   ↳ com.android.ddmlib.MultiLineReceiver
     ↳ com.android.tradefed.device.TopHelper.TopReceiver


Receiver which parses the output from top.

Summary

Public constructors

TopHelper.TopReceiver()

Public methods

void cancel()

Cancels the top command.

List<TopHelper.TopStats> getTopStats()

Gets a list of TopHelper.TopStats instances.

boolean isCancelled()

void logToFile(File logFile)

Specify a file to log the top output to.

void processNewLines(String[] lines)

Public constructors

TopHelper.TopReceiver

TopHelper.TopReceiver ()

Public methods

cancel

void cancel ()

Cancels the top command.

getTopStats

List<TopHelper.TopStats> getTopStats ()

Gets a list of TopHelper.TopStats instances.

Returns
List<TopHelper.TopStats> a list of TopHelper.TopStats instances ordered from oldest to newest.

isCancelled

boolean isCancelled ()

Returns
boolean

logToFile

void logToFile (File logFile)

Specify a file to log the top output to.

Parameters
logFile File: the file to lot output to.

processNewLines

void processNewLines (String[] lines)

Parameters
lines String