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
synchronized void cancel()
Cancels the cpustats command.
synchronized Map<String, List<CpuStatsCollector.CpuStats>> getCpuStats()
Get all the parsed data as a map from label to lists of CpuStatsCollector.CpuStats objects.
synchronized boolean isCancelled()
synchronized 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 synchronized void cancel ()

Cancels the cpustats command.

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

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

public synchronized boolean isCancelled ()

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

public void processNewLines (String[] lines)