- Resource: PerfMetricsSummary
- PerfEnvironment
- CPUInfo
- MemoryInfo
- AppStartTime
- GraphicsStats
- Bucket
- Methods
Resource: PerfMetricsSummary
A summary of perf metrics collected and performance environment info
JSON representation |
---|
{ "projectId": string, "historyId": string, "executionId": string, "stepId": string, "perfMetrics": [ enum ( |
Fields | |
---|---|
projectId |
The cloud project Note: This field is used in responses only. Any value specified here in a request is ignored. |
historyId |
A tool results history ID. Note: This field is used in responses only. Any value specified here in a request is ignored. |
executionId |
A tool results execution ID. Note: This field is used in responses only. Any value specified here in a request is ignored. |
stepId |
A tool results step ID. Note: This field is used in responses only. Any value specified here in a request is ignored. |
perfMetrics[] |
Set of resource collected |
perfEnvironment |
Describes the environment in which the performance metrics were collected |
appStartTime |
|
graphicsStats |
Graphics statistics for the entire run. Statistics are reset at the beginning of the run and collected at the end of the run. |
PerfEnvironment
Encapsulates performance environment info
JSON representation |
---|
{ "cpuInfo": { object ( |
Fields | |
---|---|
cpuInfo |
CPU related environment info |
memoryInfo |
Memory related environment info |
CPUInfo
JSON representation |
---|
{ "cpuProcessor": string, "cpuSpeedInGhz": number, "numberOfCores": integer } |
Fields | |
---|---|
cpuProcessor |
description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A' |
cpuSpeedInGhz |
the CPU clock speed in GHz |
numberOfCores |
the number of CPU cores |
MemoryInfo
JSON representation |
---|
{ "memoryTotalInKibibyte": string, "memoryCapInKibibyte": string } |
Fields | |
---|---|
memoryTotalInKibibyte |
Total memory available on the device in KiB |
memoryCapInKibibyte |
Maximum memory that can be allocated to the process in KiB |
AppStartTime
JSON representation |
---|
{ "initialDisplayTime": { object ( |
Fields | |
---|---|
initialDisplayTime |
The time from app start to the first displayed activity being drawn, as reported in Logcat. See https://developer.android.com/topic/performance/launch-time.html#time-initial |
fullyDrawnTime |
Optional. The time from app start to reaching the developer-reported "fully drawn" time. This is only stored if the app includes a call to Activity.reportFullyDrawn(). See https://developer.android.com/topic/performance/launch-time.html#time-full |
GraphicsStats
Graphics statistics for the App. The information is collected from 'adb shell dumpsys graphicsstats'. For more info see: https://developer.android.com/training/testing/performance.html Statistics will only be present for API 23+.
JSON representation |
---|
{
"totalFrames": string,
"jankyFrames": string,
"p50Millis": string,
"p90Millis": string,
"p95Millis": string,
"p99Millis": string,
"missedVsyncCount": string,
"highInputLatencyCount": string,
"slowUiThreadCount": string,
"slowBitmapUploadCount": string,
"slowDrawCount": string,
"buckets": [
{
object ( |
Fields | |
---|---|
totalFrames |
Total frames rendered by package. |
jankyFrames |
Total frames with slow render time. Should be <= totalFrames. |
p50Millis |
50th percentile frame render time in milliseconds. |
p90Millis |
90th percentile frame render time in milliseconds. |
p95Millis |
95th percentile frame render time in milliseconds. |
p99Millis |
99th percentile frame render time in milliseconds. |
missedVsyncCount |
Total "missed vsync" events. |
highInputLatencyCount |
Total "high input latency" events. |
slowUiThreadCount |
Total "slow UI thread" events. |
slowBitmapUploadCount |
Total "slow bitmap upload" events. |
slowDrawCount |
Total "slow draw" events. |
buckets[] |
Histogram of frame render times. There should be 154 buckets ranging from [5ms, 6ms) to [4950ms, infinity) |
Bucket
JSON representation |
---|
{ "renderMillis": string, "frameCount": string } |
Fields | |
---|---|
renderMillis |
Lower bound of render time in milliseconds. |
frameCount |
Number of frames in the bucket. |
Methods |
|
---|---|
|
Creates a PerfMetricsSummary resource. |