GoogleBenchmarkResultParser

public class GoogleBenchmarkResultParser
extends Object

java.lang.Object
com.android.tradefed.testtype.GoogleBenchmarkResultParser


แยกวิเคราะห์ผลลัพธ์ของ Google Benchmark ที่เรียกใช้จากเชลล์ และส่งคืนแผนที่พร้อมผลลัพธ์ทั้งหมด

สรุป

ผู้สร้างสาธารณะ

GoogleBenchmarkResultParser (String testClassName, ITestInvocationListener listener)

วิธีการสาธารณะ

parse ( CollectingOutputReceiver output)

แยกแต่ละบรรทัดเอาต์พุต

วิธีการป้องกัน

parseJsonToMap (JSONObject j)

ตัวช่วยที่อยู่เหนือคีย์ json ทั้งหมดและวางไว้ในแผนที่ด้วยค่าที่ตรงกัน

ผู้สร้างสาธารณะ

GoogleBenchmarkResultParser

public GoogleBenchmarkResultParser (String testClassName, 
                ITestInvocationListener listener)

พารามิเตอร์
testClassName String

listener ITestInvocationListener

วิธีการสาธารณะ

แยกวิเคราะห์

public  parse (CollectingOutputReceiver output)

แยกแต่ละบรรทัดเอาต์พุต ชื่อ, การวนซ้ำ, เรียลไทม์, cpu_time, ไบต์ต่อวินาที, รายการต่อวินาที, ป้ายกำกับ

พารามิเตอร์
output CollectingOutputReceiver : มีผลลัพธ์การทดสอบ

ส่งคืน
แผนที่ที่มีจำนวนการทดสอบที่ดำเนินการ

วิธีการป้องกัน

แยกวิเคราะห์ JsonToMap

protected  parseJsonToMap (JSONObject j)

ตัวช่วยที่อยู่เหนือคีย์ json ทั้งหมดและวางไว้ในแผนที่ด้วยค่าที่ตรงกัน

พารามิเตอร์
j JSONObject

ส่งคืน

พ่น
JSONException