AtraceCollector
public class AtraceCollector
extends BaseDeviceMetricCollector
java.lang.Object | ||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
↳ | com.android.tradefed.device.metric.AtraceCollector |
Bir test sırasında bir yarış çalıştıran ve sonucu toplayan ve bunları çağrıya kaydeden bir IMetricCollector
.
Özet
Kamu inşaatçıları | |
---|---|
AtraceCollector () |
Genel yöntemler | |
---|---|
void | onTestEnd ( DeviceMetricData testData, currentTestCaseMetrics, TestDescription test) onTestEnd ( DeviceMetricData testData, currentTestCaseMetrics, TestDescription test) Bir test senaryosu sona erdiğinde geri arama. |
void | onTestStart ( DeviceMetricData testData) Bir test senaryosu başlatıldığında geri arama. |
Korumalı yöntemler | |
---|---|
String | fullLogPath () |
LogDataType | getLogType () |
void | startTracing ( ITestDevice device) |
void | stopTracing ( ITestDevice device) |
Kamu inşaatçıları
AtraceCollector
public AtraceCollector ()
Genel yöntemler
onTestEnd
public void onTestEnd (DeviceMetricData testData,currentTestCaseMetrics, TestDescription test)
Bir test senaryosu sona erdiğinde geri arama. Bu temizlik zamanı olmalı.
Parametreler | |
---|---|
testData | DeviceMetricData : test senaryosuna ilişkin verileri tutan DeviceMetricData . onTestStart(com.android.tradefed.device.metric.DeviceMetricData) sırasındakiyle aynı nesne olacaktır. |
currentTestCaseMetrics | ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map)) iletilen mevcut ölçüm haritası. |
test | TestDescription : Devam eden test senaryosunun TestDescription . |
Atar | |
---|---|
DeviceNotAvailableException |
onTestStart
public void onTestStart (DeviceMetricData testData)
Bir test senaryosu başlatıldığında geri arama.
Parametreler | |
---|---|
testData | DeviceMetricData : test senaryosuna ilişkin verileri tutan DeviceMetricData . |
Atar | |
---|---|
DeviceNotAvailableException |
Korumalı yöntemler
tamLogPath
protected String fullLogPath ()
İadeler | |
---|---|
String |
İzlemeyi başlat
protected void startTracing (ITestDevice device)
Parametreler | |
---|---|
device | ITestDevice |
Atar | |
---|---|
DeviceNotAvailableException |
İzlemeyi durdur
protected void stopTracing (ITestDevice device)
Parametreler | |
---|---|
device | ITestDevice |
Atar | |
---|---|
DeviceNotAvailableException |