CpuStatsCollector.CpuStatsReceiver
public
static
class
CpuStatsCollector.CpuStatsReceiver
extends MultiLineReceiver
java.lang.Object | ||
↳ | com.android.ddmlib.MultiLineReceiver | |
↳ | com.android.tradefed.device.CpuStatsCollector.CpuStatsReceiver |
Receiver which parses the output from cpustats
and optionally logs to a file.
Summary
Public constructors | |
---|---|
CpuStatsCollector.CpuStatsReceiver()
|
Public methods | |
---|---|
void
|
cancel()
Cancels the |
|
getCpuStats()
Get all the parsed data as a map from label to lists of |
boolean
|
isCancelled()
|
void
|
logToFile(File logFile)
Specify a file to log the output to. |
void
|
processNewLines(String[] lines)
|
Public constructors
CpuStatsCollector.CpuStatsReceiver
public CpuStatsCollector.CpuStatsReceiver ()
Public methods
cancel
public void cancel ()
Cancels the cpustats
command.
getCpuStats
publicgetCpuStats ()
Get all the parsed data as a map from label to lists of CpuStats
objects.
Returns | |
---|---|
|
isCancelled
public boolean isCancelled ()
Returns | |
---|---|
boolean |
logToFile
public void logToFile (File logFile)
Specify a file to log the output to.
This can be called at any time in the receivers life cycle, but only new output will be logged to the file.
Parameters | |
---|---|
logFile |
File |
processNewLines
public void processNewLines (String[] lines)
Parameters | |
---|---|
lines |
String |