to top
public static class

CpuStatsCollector.CpuStatsReceiver

extends MultiLineReceiver
java.lang.Object
   ↳ com.android.ddmlib.MultiLineReceiver
     ↳ com.android.tradefed.device.CpuStatsCollector.CpuStatsReceiver

Class Overview

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)
[Expand]
Inherited Methods
From class com.android.ddmlib.MultiLineReceiver
From class java.lang.Object
From interface com.android.ddmlib.IShellOutputReceiver

Public Constructors

public CpuStatsCollector.CpuStatsReceiver ()

Public Methods

public void cancel ()

Cancels the cpustats command.

public 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>>

public boolean isCancelled ()

Returns
boolean

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

public void processNewLines (String[] lines)

Parameters
lines String