REST Resource: projects.histories.executions.steps.perfMetricsSummary

แหล่งข้อมูล: PerfMetricsSummary

สรุปตัวชี้วัดประสิทธิภาพที่รวบรวมและข้อมูลสภาพแวดล้อมด้านประสิทธิภาพ

การเป็นตัวแทน JSON
{
  "projectId": string,
  "historyId": string,
  "executionId": string,
  "stepId": string,
  "perfMetrics": [
    enum (PerfMetricType)
  ],
  "perfEnvironment": {
    object (PerfEnvironment)
  },
  "appStartTime": {
    object (AppStartTime)
  },
  "graphicsStats": {
    object (GraphicsStats)
  }
}
เขตข้อมูล
projectId

string

โครงการคลาวด์

หมายเหตุ: ฟิลด์นี้ใช้ในการตอบกลับเท่านั้น ค่าใดๆ ที่ระบุที่นี่ในคำขอจะถูกละเว้น

historyId

string

รหัสประวัติผลลัพธ์เครื่องมือ

หมายเหตุ: ฟิลด์นี้ใช้ในการตอบกลับเท่านั้น ค่าใดๆ ที่ระบุที่นี่ในคำขอจะถูกละเว้น

executionId

string

รหัสการดำเนินการผลลัพธ์ของเครื่องมือ

หมายเหตุ: ฟิลด์นี้ใช้ในการตอบกลับเท่านั้น ค่าใดๆ ที่ระบุที่นี่ในคำขอจะถูกละเว้น

stepId

string

รหัสขั้นตอนผลลัพธ์เครื่องมือ

หมายเหตุ: ฟิลด์นี้ใช้ในการตอบกลับเท่านั้น ค่าใดๆ ที่ระบุที่นี่ในคำขอจะถูกละเว้น

perfMetrics[]

enum ( PerfMetricType )

ชุดของทรัพยากรที่รวบรวม

perfEnvironment

object ( PerfEnvironment )

อธิบายสภาพแวดล้อมที่รวบรวมการวัดประสิทธิภาพ

appStartTime

object ( AppStartTime )

graphicsStats

object ( GraphicsStats )

สถิติกราฟิกตลอดการวิ่ง สถิติจะถูกรีเซ็ตเมื่อเริ่มต้นการวิ่งและรวบรวมเมื่อสิ้นสุดการวิ่ง

เพอร์ฟสิ่งแวดล้อม

สรุปข้อมูลสภาพแวดล้อมประสิทธิภาพ

การเป็นตัวแทน JSON
{
  "cpuInfo": {
    object (CPUInfo)
  },
  "memoryInfo": {
    object (MemoryInfo)
  }
}
เขตข้อมูล
cpuInfo

object ( CPUInfo )

ข้อมูลสภาพแวดล้อมที่เกี่ยวข้องกับ CPU

memoryInfo

object ( MemoryInfo )

ข้อมูลสภาพแวดล้อมที่เกี่ยวข้องกับหน่วยความจำ

ข้อมูลซีพียู

การเป็นตัวแทน JSON
{
  "cpuProcessor": string,
  "cpuSpeedInGhz": number,
  "numberOfCores": integer
}
เขตข้อมูล
cpuProcessor

string

คำอธิบายของโปรเซสเซอร์อุปกรณ์ เช่น '1.8 GHz hexa core 64-bit ARMv8-A'

cpuSpeedInGhz

number

ความเร็วสัญญาณนาฬิกาของ CPU ในหน่วย GHz

numberOfCores

integer

จำนวนแกน CPU

ข้อมูลหน่วยความจำ

การเป็นตัวแทน JSON
{
  "memoryTotalInKibibyte": string,
  "memoryCapInKibibyte": string
}
เขตข้อมูล
memoryTotalInKibibyte

string ( int64 format)

หน่วยความจำทั้งหมดที่มีอยู่ในอุปกรณ์ในหน่วย KiB

memoryCapInKibibyte

string ( int64 format)

หน่วยความจำสูงสุดที่สามารถจัดสรรให้กับกระบวนการใน KiB

AppStartTime

การเป็นตัวแทน JSON
{
  "initialDisplayTime": {
    object (Duration)
  },
  "fullyDrawnTime": {
    object (Duration)
  }
}
เขตข้อมูล
initialDisplayTime

object ( Duration )

เวลาตั้งแต่เริ่มต้นแอปจนถึงกิจกรรมที่แสดงครั้งแรกที่ถูกวาด ตามที่รายงานใน Logcat ดู https://developer.android.com/topic/Performance/launch-time.html#time-initial

fullyDrawnTime

object ( Duration )

ไม่จำเป็น. เวลาตั้งแต่เริ่มแอปจนถึงเวลาที่ "ดึงออกมาเต็มที่" ที่นักพัฒนารายงาน สิ่งนี้จะถูกเก็บไว้เฉพาะในกรณีที่แอปมีการเรียกไปยัง Activity.reportFullyDrawn() ดู https://developer.android.com/topic/Performance/launch-time.html#time-full

GraphicsStats

สถิติกราฟิกสำหรับแอป ข้อมูลนี้รวบรวมจาก 'adb shell dumpsys graphicsstats' ดูข้อมูลเพิ่มเติมได้ที่ https://developer.android.com/training/testing/Performance.html สถิติจะแสดงเฉพาะสำหรับ API 23+ เท่านั้น

การเป็นตัวแทน JSON
{
  "totalFrames": string,
  "jankyFrames": string,
  "p50Millis": string,
  "p90Millis": string,
  "p95Millis": string,
  "p99Millis": string,
  "missedVsyncCount": string,
  "highInputLatencyCount": string,
  "slowUiThreadCount": string,
  "slowBitmapUploadCount": string,
  "slowDrawCount": string,
  "buckets": [
    {
      object (Bucket)
    }
  ]
}
เขตข้อมูล
totalFrames

string ( int64 format)

เฟรมทั้งหมดที่แสดงผลตามแพ็กเกจ

jankyFrames

string ( int64 format)

จำนวนเฟรมทั้งหมดที่มีเวลาในการเรนเดอร์ช้า ควรเป็น <= รวมเฟรม

p50Millis

string ( int64 format)

เวลาเรนเดอร์เฟรมเปอร์เซ็นไทล์ที่ 50 มีหน่วยเป็นมิลลิวินาที

p90Millis

string ( int64 format)

เวลาเรนเดอร์เฟรมเปอร์เซ็นไทล์ที่ 90 มีหน่วยเป็นมิลลิวินาที

p95Millis

string ( int64 format)

เวลาเรนเดอร์เฟรมเปอร์เซ็นไทล์ที่ 95 มีหน่วยเป็นมิลลิวินาที

p99Millis

string ( int64 format)

เวลาเรนเดอร์เฟรมเปอร์เซ็นไทล์ที่ 99 มีหน่วยเป็นมิลลิวินาที

missedVsyncCount

string ( int64 format)

เหตุการณ์ "missed vsync" ทั้งหมด

highInputLatencyCount

string ( int64 format)

เหตุการณ์ "เวลาแฝงอินพุตสูง" ทั้งหมด

slowUiThreadCount

string ( int64 format)

เหตุการณ์ "เธรด UI ที่ช้า" ทั้งหมด

slowBitmapUploadCount

string ( int64 format)

เหตุการณ์ "การอัปโหลดบิตแมปช้า" ทั้งหมด

slowDrawCount

string ( int64 format)

เหตุการณ์ "การจับรางวัลช้า" ทั้งหมด

buckets[]

object ( Bucket )

ฮิสโตแกรมของเวลาในการเรนเดอร์เฟรม ควรมีที่เก็บข้อมูล 154 รายการตั้งแต่ [5ms, 6ms) ถึง [4950ms, infinity)

ถัง

การเป็นตัวแทน JSON
{
  "renderMillis": string,
  "frameCount": string
}
เขตข้อมูล
renderMillis

string ( int64 format)

ขอบเขตล่างของเวลาในการเรนเดอร์เป็นมิลลิวินาที

frameCount

string ( int64 format)

จำนวนเฟรมในที่เก็บข้อมูล

วิธีการ

create

สร้างทรัพยากร PerfMetricsSummary