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 cpustats command.

Map<String, List<CpuStatsCollector.CpuStats>> getCpuStats()

Get all the parsed data as a map from label to lists of CpuStatsCollector.CpuStats objects.

boolean isCancelled()

void logToFile(File logFile)

Specify a file to log the output to.

void processNewLines(String[] lines)

Public constructors

CpuStatsCollector.CpuStatsReceiver

CpuStatsCollector.CpuStatsReceiver ()

Public methods

cancel

void cancel ()

Cancels the cpustats command.

getCpuStats

Map<String, List<CpuStatsCollector.CpuStats>> getCpuStats ()

Get all the parsed data as a map from label to lists of CpuStatsCollector.CpuStats objects.

Returns
Map<String, List<CpuStatsCollector.CpuStats>>

isCancelled

boolean isCancelled ()

Returns
boolean

logToFile

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

void processNewLines (String[] lines)

Parameters
lines String