blob: 812955291386962a6813091eddd1033c68bca0a1 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="toolresults_v1beta3.html">Cloud Tool Results API</a> . <a href="toolresults_v1beta3.perfMetricsSummary.html">perfMetricsSummary</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(projectId, historyId, executionId, stepId, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a PerfMetricsSummary resource. Returns the existing one if it has</p>
80<h3>Method Details</h3>
81<div class="method">
82 <code class="details" id="create">create(projectId, historyId, executionId, stepId, body=None, x__xgafv=None)</code>
83 <pre>Creates a PerfMetricsSummary resource. Returns the existing one if it has
84already been created.
85
86May return any of the following error code(s):
87- NOT_FOUND - The containing Step does not exist
88
89Args:
90 projectId: string, The cloud project (required)
91 historyId: string, A tool results history ID. (required)
92 executionId: string, A tool results execution ID. (required)
93 stepId: string, A tool results step ID. (required)
94 body: object, The request body.
95 The object takes the form of:
96
97{ # A summary of perf metrics collected and performance environment info
98 &quot;historyId&quot;: &quot;A String&quot;, # A tool results history ID.
99 # @OutputOnly
100 &quot;perfEnvironment&quot;: { # Encapsulates performance environment info # Describes the environment in which the performance metrics were collected
101 &quot;cpuInfo&quot;: { # CPU related environment info
102 &quot;numberOfCores&quot;: 42, # the number of CPU cores
103 &quot;cpuProcessor&quot;: &quot;A String&quot;, # description of the device processor ie &#x27;1.8 GHz hexa core 64-bit ARMv8-A&#x27;
104 &quot;cpuSpeedInGhz&quot;: 3.14, # the CPU clock speed in GHz
105 },
106 &quot;memoryInfo&quot;: { # Memory related environment info
107 &quot;memoryTotalInKibibyte&quot;: &quot;A String&quot;, # Total memory available on the device in KiB
108 &quot;memoryCapInKibibyte&quot;: &quot;A String&quot;, # Maximum memory that can be allocated to the process in KiB
109 },
110 },
111 &quot;graphicsStats&quot;: { # Graphics statistics for the App. # Graphics statistics for the entire run. Statistics are reset at the
112 # beginning of the run and collected at the end of the run.
113 # The information is collected from &#x27;adb shell dumpsys graphicsstats&#x27;.
114 # For more info see:
115 # https://developer.android.com/training/testing/performance.html
116 # Statistics will only be present for API 23+.
117 &quot;p95Millis&quot;: &quot;A String&quot;, # 95th percentile frame render time in milliseconds.
118 &quot;missedVsyncCount&quot;: &quot;A String&quot;, # Total &quot;missed vsync&quot; events.
119 &quot;p90Millis&quot;: &quot;A String&quot;, # 90th percentile frame render time in milliseconds.
120 &quot;jankyFrames&quot;: &quot;A String&quot;, # Total frames with slow render time. Should be &lt;= total_frames.
121 &quot;slowBitmapUploadCount&quot;: &quot;A String&quot;, # Total &quot;slow bitmap upload&quot; events.
122 &quot;buckets&quot;: [ # Histogram of frame render times. There should be 154 buckets ranging from
123 # [5ms, 6ms) to [4950ms, infinity)
124 {
125 &quot;frameCount&quot;: &quot;A String&quot;, # Number of frames in the bucket.
126 &quot;renderMillis&quot;: &quot;A String&quot;, # Lower bound of render time in milliseconds.
127 },
128 ],
129 &quot;totalFrames&quot;: &quot;A String&quot;, # Total frames rendered by package.
130 &quot;p50Millis&quot;: &quot;A String&quot;, # 50th percentile frame render time in milliseconds.
131 &quot;slowUiThreadCount&quot;: &quot;A String&quot;, # Total &quot;slow UI thread&quot; events.
132 &quot;p99Millis&quot;: &quot;A String&quot;, # 99th percentile frame render time in milliseconds.
133 &quot;slowDrawCount&quot;: &quot;A String&quot;, # Total &quot;slow draw&quot; events.
134 &quot;highInputLatencyCount&quot;: &quot;A String&quot;, # Total &quot;high input latency&quot; events.
135 },
136 &quot;projectId&quot;: &quot;A String&quot;, # The cloud project
137 # @OutputOnly
138 &quot;perfMetrics&quot;: [ # Set of resource collected
139 &quot;A String&quot;,
140 ],
141 &quot;appStartTime&quot;: {
142 &quot;initialDisplayTime&quot;: { # # The time from app start to the first displayed activity being drawn,
143 # as reported in Logcat. See
144 # https://developer.android.com/topic/performance/launch-time.html#time-initial
145 # A Duration represents a signed, fixed-length span of time represented
146 # as a count of seconds and fractions of seconds at nanosecond
147 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
148 # or &quot;month&quot;. It is related to Timestamp in that the difference between
149 # two Timestamp values is a Duration and it can be added or subtracted
150 # from a Timestamp. Range is approximately +-10,000 years.
151 &quot;nanos&quot;: 42, # Signed fractions of a second at nanosecond resolution of the span
152 # of time. Durations less than one second are represented with a 0
153 # `seconds` field and a positive or negative `nanos` field. For durations
154 # of one second or more, a non-zero value for the `nanos` field must be
155 # of the same sign as the `seconds` field. Must be from -999,999,999
156 # to +999,999,999 inclusive.
157 &quot;seconds&quot;: &quot;A String&quot;, # Signed seconds of the span of time. Must be from -315,576,000,000
158 # to +315,576,000,000 inclusive. Note: these bounds are computed from:
159 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
160 },
161 &quot;fullyDrawnTime&quot;: { # # Optional. The time from app start to reaching the developer-reported
162 # &quot;fully drawn&quot; time. This is only stored if the app includes a call to
163 # Activity.reportFullyDrawn(). See
164 # https://developer.android.com/topic/performance/launch-time.html#time-full
165 # A Duration represents a signed, fixed-length span of time represented
166 # as a count of seconds and fractions of seconds at nanosecond
167 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
168 # or &quot;month&quot;. It is related to Timestamp in that the difference between
169 # two Timestamp values is a Duration and it can be added or subtracted
170 # from a Timestamp. Range is approximately +-10,000 years.
171 &quot;nanos&quot;: 42, # Signed fractions of a second at nanosecond resolution of the span
172 # of time. Durations less than one second are represented with a 0
173 # `seconds` field and a positive or negative `nanos` field. For durations
174 # of one second or more, a non-zero value for the `nanos` field must be
175 # of the same sign as the `seconds` field. Must be from -999,999,999
176 # to +999,999,999 inclusive.
177 &quot;seconds&quot;: &quot;A String&quot;, # Signed seconds of the span of time. Must be from -315,576,000,000
178 # to +315,576,000,000 inclusive. Note: these bounds are computed from:
179 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
180 },
181 },
182 &quot;executionId&quot;: &quot;A String&quot;, # A tool results execution ID.
183 # @OutputOnly
184 &quot;stepId&quot;: &quot;A String&quot;, # A tool results step ID.
185 # @OutputOnly
186 }
187
188 x__xgafv: string, V1 error format.
189 Allowed values
190 1 - v1 error format
191 2 - v2 error format
192
193Returns:
194 An object of the form:
195
196 { # A summary of perf metrics collected and performance environment info
197 &quot;historyId&quot;: &quot;A String&quot;, # A tool results history ID.
198 # @OutputOnly
199 &quot;perfEnvironment&quot;: { # Encapsulates performance environment info # Describes the environment in which the performance metrics were collected
200 &quot;cpuInfo&quot;: { # CPU related environment info
201 &quot;numberOfCores&quot;: 42, # the number of CPU cores
202 &quot;cpuProcessor&quot;: &quot;A String&quot;, # description of the device processor ie &#x27;1.8 GHz hexa core 64-bit ARMv8-A&#x27;
203 &quot;cpuSpeedInGhz&quot;: 3.14, # the CPU clock speed in GHz
204 },
205 &quot;memoryInfo&quot;: { # Memory related environment info
206 &quot;memoryTotalInKibibyte&quot;: &quot;A String&quot;, # Total memory available on the device in KiB
207 &quot;memoryCapInKibibyte&quot;: &quot;A String&quot;, # Maximum memory that can be allocated to the process in KiB
208 },
209 },
210 &quot;graphicsStats&quot;: { # Graphics statistics for the App. # Graphics statistics for the entire run. Statistics are reset at the
211 # beginning of the run and collected at the end of the run.
212 # The information is collected from &#x27;adb shell dumpsys graphicsstats&#x27;.
213 # For more info see:
214 # https://developer.android.com/training/testing/performance.html
215 # Statistics will only be present for API 23+.
216 &quot;p95Millis&quot;: &quot;A String&quot;, # 95th percentile frame render time in milliseconds.
217 &quot;missedVsyncCount&quot;: &quot;A String&quot;, # Total &quot;missed vsync&quot; events.
218 &quot;p90Millis&quot;: &quot;A String&quot;, # 90th percentile frame render time in milliseconds.
219 &quot;jankyFrames&quot;: &quot;A String&quot;, # Total frames with slow render time. Should be &lt;= total_frames.
220 &quot;slowBitmapUploadCount&quot;: &quot;A String&quot;, # Total &quot;slow bitmap upload&quot; events.
221 &quot;buckets&quot;: [ # Histogram of frame render times. There should be 154 buckets ranging from
222 # [5ms, 6ms) to [4950ms, infinity)
223 {
224 &quot;frameCount&quot;: &quot;A String&quot;, # Number of frames in the bucket.
225 &quot;renderMillis&quot;: &quot;A String&quot;, # Lower bound of render time in milliseconds.
226 },
227 ],
228 &quot;totalFrames&quot;: &quot;A String&quot;, # Total frames rendered by package.
229 &quot;p50Millis&quot;: &quot;A String&quot;, # 50th percentile frame render time in milliseconds.
230 &quot;slowUiThreadCount&quot;: &quot;A String&quot;, # Total &quot;slow UI thread&quot; events.
231 &quot;p99Millis&quot;: &quot;A String&quot;, # 99th percentile frame render time in milliseconds.
232 &quot;slowDrawCount&quot;: &quot;A String&quot;, # Total &quot;slow draw&quot; events.
233 &quot;highInputLatencyCount&quot;: &quot;A String&quot;, # Total &quot;high input latency&quot; events.
234 },
235 &quot;projectId&quot;: &quot;A String&quot;, # The cloud project
236 # @OutputOnly
237 &quot;perfMetrics&quot;: [ # Set of resource collected
238 &quot;A String&quot;,
239 ],
240 &quot;appStartTime&quot;: {
241 &quot;initialDisplayTime&quot;: { # # The time from app start to the first displayed activity being drawn,
242 # as reported in Logcat. See
243 # https://developer.android.com/topic/performance/launch-time.html#time-initial
244 # A Duration represents a signed, fixed-length span of time represented
245 # as a count of seconds and fractions of seconds at nanosecond
246 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
247 # or &quot;month&quot;. It is related to Timestamp in that the difference between
248 # two Timestamp values is a Duration and it can be added or subtracted
249 # from a Timestamp. Range is approximately +-10,000 years.
250 &quot;nanos&quot;: 42, # Signed fractions of a second at nanosecond resolution of the span
251 # of time. Durations less than one second are represented with a 0
252 # `seconds` field and a positive or negative `nanos` field. For durations
253 # of one second or more, a non-zero value for the `nanos` field must be
254 # of the same sign as the `seconds` field. Must be from -999,999,999
255 # to +999,999,999 inclusive.
256 &quot;seconds&quot;: &quot;A String&quot;, # Signed seconds of the span of time. Must be from -315,576,000,000
257 # to +315,576,000,000 inclusive. Note: these bounds are computed from:
258 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
259 },
260 &quot;fullyDrawnTime&quot;: { # # Optional. The time from app start to reaching the developer-reported
261 # &quot;fully drawn&quot; time. This is only stored if the app includes a call to
262 # Activity.reportFullyDrawn(). See
263 # https://developer.android.com/topic/performance/launch-time.html#time-full
264 # A Duration represents a signed, fixed-length span of time represented
265 # as a count of seconds and fractions of seconds at nanosecond
266 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
267 # or &quot;month&quot;. It is related to Timestamp in that the difference between
268 # two Timestamp values is a Duration and it can be added or subtracted
269 # from a Timestamp. Range is approximately +-10,000 years.
270 &quot;nanos&quot;: 42, # Signed fractions of a second at nanosecond resolution of the span
271 # of time. Durations less than one second are represented with a 0
272 # `seconds` field and a positive or negative `nanos` field. For durations
273 # of one second or more, a non-zero value for the `nanos` field must be
274 # of the same sign as the `seconds` field. Must be from -999,999,999
275 # to +999,999,999 inclusive.
276 &quot;seconds&quot;: &quot;A String&quot;, # Signed seconds of the span of time. Must be from -315,576,000,000
277 # to +315,576,000,000 inclusive. Note: these bounds are computed from:
278 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
279 },
280 },
281 &quot;executionId&quot;: &quot;A String&quot;, # A tool results execution ID.
282 # @OutputOnly
283 &quot;stepId&quot;: &quot;A String&quot;, # A tool results step ID.
284 # @OutputOnly
285 }</pre>
286</div>
287
288</body></html>