GoogleBenchmarkResultParser

public class GoogleBenchmarkResultParser
extends Object

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


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

สรุป

ตัวสร้างแบบสาธารณะ

GoogleBenchmarkResultParser(String testClassName, ITestInvocationListener listener)

เมธอดสาธารณะ

parse(CommandResult cmd_result)

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

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

parseJsonToMap(JSONObject j)

เครื่องมือที่ตรวจสอบคีย์ JSON ทั้งหมดและใส่ไว้ในแผนที่พร้อมค่าที่ตรงกัน

ตัวสร้างแบบสาธารณะ

GoogleBenchmarkResultParser

public GoogleBenchmarkResultParser (String testClassName, 
                ITestInvocationListener listener)

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

listener ITestInvocationListener

เมธอดสาธารณะ

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

public  parse (CommandResult cmd_result)

แยกวิเคราะห์บรรทัดเอาต์พุตแต่ละบรรทัด name,iterations,real_time,cpu_time,time_unit,bytes_per_second,items_per_second,label, error_occurred,error_message

พารามิเตอร์
cmd_result CommandResult: ผลลัพธ์ของคําสั่งอุปกรณ์ซึ่งมีเอาต์พุตการทดสอบ

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

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

parseJsonToMap

protected  parseJsonToMap (JSONObject j)

เครื่องมือที่ตรวจสอบคีย์ JSON ทั้งหมดและใส่ไว้ในแผนที่พร้อมค่าที่ตรงกัน

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

คิกรีเทิร์น

การโยน
JSONException