blob: 7c22af90bad7b463336fd2a83fd76ca449993c8d [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
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070098 &quot;stepId&quot;: &quot;A String&quot;, # A tool results step ID.
99 # @OutputOnly
Bu Sun Kim65020912020-05-20 12:08:20 -0700100 &quot;historyId&quot;: &quot;A String&quot;, # A tool results history ID.
101 # @OutputOnly
102 &quot;perfEnvironment&quot;: { # Encapsulates performance environment info # Describes the environment in which the performance metrics were collected
103 &quot;cpuInfo&quot;: { # CPU related environment info
104 &quot;numberOfCores&quot;: 42, # the number of CPU cores
105 &quot;cpuProcessor&quot;: &quot;A String&quot;, # description of the device processor ie &#x27;1.8 GHz hexa core 64-bit ARMv8-A&#x27;
106 &quot;cpuSpeedInGhz&quot;: 3.14, # the CPU clock speed in GHz
107 },
108 &quot;memoryInfo&quot;: { # Memory related environment info
109 &quot;memoryTotalInKibibyte&quot;: &quot;A String&quot;, # Total memory available on the device in KiB
110 &quot;memoryCapInKibibyte&quot;: &quot;A String&quot;, # Maximum memory that can be allocated to the process in KiB
111 },
112 },
113 &quot;graphicsStats&quot;: { # Graphics statistics for the App. # Graphics statistics for the entire run. Statistics are reset at the
114 # beginning of the run and collected at the end of the run.
115 # The information is collected from &#x27;adb shell dumpsys graphicsstats&#x27;.
116 # For more info see:
117 # https://developer.android.com/training/testing/performance.html
118 # Statistics will only be present for API 23+.
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 &quot;slowBitmapUploadCount&quot;: &quot;A String&quot;, # Total &quot;slow bitmap upload&quot; events.
120 &quot;buckets&quot;: [ # Histogram of frame render times. There should be 154 buckets ranging from
121 # [5ms, 6ms) to [4950ms, infinity)
122 {
123 &quot;frameCount&quot;: &quot;A String&quot;, # Number of frames in the bucket.
124 &quot;renderMillis&quot;: &quot;A String&quot;, # Lower bound of render time in milliseconds.
125 },
126 ],
127 &quot;totalFrames&quot;: &quot;A String&quot;, # Total frames rendered by package.
128 &quot;p50Millis&quot;: &quot;A String&quot;, # 50th percentile frame render time in milliseconds.
129 &quot;slowUiThreadCount&quot;: &quot;A String&quot;, # Total &quot;slow UI thread&quot; events.
130 &quot;p99Millis&quot;: &quot;A String&quot;, # 99th percentile frame render time in milliseconds.
131 &quot;slowDrawCount&quot;: &quot;A String&quot;, # Total &quot;slow draw&quot; events.
132 &quot;highInputLatencyCount&quot;: &quot;A String&quot;, # Total &quot;high input latency&quot; events.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700133 &quot;p95Millis&quot;: &quot;A String&quot;, # 95th percentile frame render time in milliseconds.
134 &quot;missedVsyncCount&quot;: &quot;A String&quot;, # Total &quot;missed vsync&quot; events.
135 &quot;p90Millis&quot;: &quot;A String&quot;, # 90th percentile frame render time in milliseconds.
136 &quot;jankyFrames&quot;: &quot;A String&quot;, # Total frames with slow render time. Should be &lt;= total_frames.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 },
138 &quot;projectId&quot;: &quot;A String&quot;, # The cloud project
139 # @OutputOnly
140 &quot;perfMetrics&quot;: [ # Set of resource collected
141 &quot;A String&quot;,
142 ],
143 &quot;appStartTime&quot;: {
144 &quot;initialDisplayTime&quot;: { # # The time from app start to the first displayed activity being drawn,
145 # as reported in Logcat. See
146 # https://developer.android.com/topic/performance/launch-time.html#time-initial
147 # A Duration represents a signed, fixed-length span of time represented
148 # as a count of seconds and fractions of seconds at nanosecond
149 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
150 # or &quot;month&quot;. It is related to Timestamp in that the difference between
151 # two Timestamp values is a Duration and it can be added or subtracted
152 # from a Timestamp. Range is approximately +-10,000 years.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;seconds&quot;: &quot;A String&quot;, # Signed seconds of the span of time. Must be from -315,576,000,000
154 # to +315,576,000,000 inclusive. Note: these bounds are computed from:
155 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;nanos&quot;: 42, # Signed fractions of a second at nanosecond resolution of the span
157 # of time. Durations less than one second are represented with a 0
158 # `seconds` field and a positive or negative `nanos` field. For durations
159 # of one second or more, a non-zero value for the `nanos` field must be
160 # of the same sign as the `seconds` field. Must be from -999,999,999
161 # to +999,999,999 inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 },
163 &quot;fullyDrawnTime&quot;: { # # Optional. The time from app start to reaching the developer-reported
164 # &quot;fully drawn&quot; time. This is only stored if the app includes a call to
165 # Activity.reportFullyDrawn(). See
166 # https://developer.android.com/topic/performance/launch-time.html#time-full
167 # A Duration represents a signed, fixed-length span of time represented
168 # as a count of seconds and fractions of seconds at nanosecond
169 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
170 # or &quot;month&quot;. It is related to Timestamp in that the difference between
171 # two Timestamp values is a Duration and it can be added or subtracted
172 # from a Timestamp. Range is approximately +-10,000 years.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700173 &quot;seconds&quot;: &quot;A String&quot;, # Signed seconds of the span of time. Must be from -315,576,000,000
174 # to +315,576,000,000 inclusive. Note: these bounds are computed from:
175 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;nanos&quot;: 42, # Signed fractions of a second at nanosecond resolution of the span
177 # of time. Durations less than one second are represented with a 0
178 # `seconds` field and a positive or negative `nanos` field. For durations
179 # of one second or more, a non-zero value for the `nanos` field must be
180 # of the same sign as the `seconds` field. Must be from -999,999,999
181 # to +999,999,999 inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 },
183 },
184 &quot;executionId&quot;: &quot;A String&quot;, # A tool results execution ID.
185 # @OutputOnly
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 }
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
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700197 &quot;stepId&quot;: &quot;A String&quot;, # A tool results step ID.
198 # @OutputOnly
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 &quot;historyId&quot;: &quot;A String&quot;, # A tool results history ID.
200 # @OutputOnly
201 &quot;perfEnvironment&quot;: { # Encapsulates performance environment info # Describes the environment in which the performance metrics were collected
202 &quot;cpuInfo&quot;: { # CPU related environment info
203 &quot;numberOfCores&quot;: 42, # the number of CPU cores
204 &quot;cpuProcessor&quot;: &quot;A String&quot;, # description of the device processor ie &#x27;1.8 GHz hexa core 64-bit ARMv8-A&#x27;
205 &quot;cpuSpeedInGhz&quot;: 3.14, # the CPU clock speed in GHz
206 },
207 &quot;memoryInfo&quot;: { # Memory related environment info
208 &quot;memoryTotalInKibibyte&quot;: &quot;A String&quot;, # Total memory available on the device in KiB
209 &quot;memoryCapInKibibyte&quot;: &quot;A String&quot;, # Maximum memory that can be allocated to the process in KiB
210 },
211 },
212 &quot;graphicsStats&quot;: { # Graphics statistics for the App. # Graphics statistics for the entire run. Statistics are reset at the
213 # beginning of the run and collected at the end of the run.
214 # The information is collected from &#x27;adb shell dumpsys graphicsstats&#x27;.
215 # For more info see:
216 # https://developer.android.com/training/testing/performance.html
217 # Statistics will only be present for API 23+.
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &quot;slowBitmapUploadCount&quot;: &quot;A String&quot;, # Total &quot;slow bitmap upload&quot; events.
219 &quot;buckets&quot;: [ # Histogram of frame render times. There should be 154 buckets ranging from
220 # [5ms, 6ms) to [4950ms, infinity)
221 {
222 &quot;frameCount&quot;: &quot;A String&quot;, # Number of frames in the bucket.
223 &quot;renderMillis&quot;: &quot;A String&quot;, # Lower bound of render time in milliseconds.
224 },
225 ],
226 &quot;totalFrames&quot;: &quot;A String&quot;, # Total frames rendered by package.
227 &quot;p50Millis&quot;: &quot;A String&quot;, # 50th percentile frame render time in milliseconds.
228 &quot;slowUiThreadCount&quot;: &quot;A String&quot;, # Total &quot;slow UI thread&quot; events.
229 &quot;p99Millis&quot;: &quot;A String&quot;, # 99th percentile frame render time in milliseconds.
230 &quot;slowDrawCount&quot;: &quot;A String&quot;, # Total &quot;slow draw&quot; events.
231 &quot;highInputLatencyCount&quot;: &quot;A String&quot;, # Total &quot;high input latency&quot; events.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700232 &quot;p95Millis&quot;: &quot;A String&quot;, # 95th percentile frame render time in milliseconds.
233 &quot;missedVsyncCount&quot;: &quot;A String&quot;, # Total &quot;missed vsync&quot; events.
234 &quot;p90Millis&quot;: &quot;A String&quot;, # 90th percentile frame render time in milliseconds.
235 &quot;jankyFrames&quot;: &quot;A String&quot;, # Total frames with slow render time. Should be &lt;= total_frames.
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 },
237 &quot;projectId&quot;: &quot;A String&quot;, # The cloud project
238 # @OutputOnly
239 &quot;perfMetrics&quot;: [ # Set of resource collected
240 &quot;A String&quot;,
241 ],
242 &quot;appStartTime&quot;: {
243 &quot;initialDisplayTime&quot;: { # # The time from app start to the first displayed activity being drawn,
244 # as reported in Logcat. See
245 # https://developer.android.com/topic/performance/launch-time.html#time-initial
246 # A Duration represents a signed, fixed-length span of time represented
247 # as a count of seconds and fractions of seconds at nanosecond
248 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
249 # or &quot;month&quot;. It is related to Timestamp in that the difference between
250 # two Timestamp values is a Duration and it can be added or subtracted
251 # from a Timestamp. Range is approximately +-10,000 years.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700252 &quot;seconds&quot;: &quot;A String&quot;, # Signed seconds of the span of time. Must be from -315,576,000,000
253 # to +315,576,000,000 inclusive. Note: these bounds are computed from:
254 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;nanos&quot;: 42, # Signed fractions of a second at nanosecond resolution of the span
256 # of time. Durations less than one second are represented with a 0
257 # `seconds` field and a positive or negative `nanos` field. For durations
258 # of one second or more, a non-zero value for the `nanos` field must be
259 # of the same sign as the `seconds` field. Must be from -999,999,999
260 # to +999,999,999 inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 },
262 &quot;fullyDrawnTime&quot;: { # # Optional. The time from app start to reaching the developer-reported
263 # &quot;fully drawn&quot; time. This is only stored if the app includes a call to
264 # Activity.reportFullyDrawn(). See
265 # https://developer.android.com/topic/performance/launch-time.html#time-full
266 # A Duration represents a signed, fixed-length span of time represented
267 # as a count of seconds and fractions of seconds at nanosecond
268 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
269 # or &quot;month&quot;. It is related to Timestamp in that the difference between
270 # two Timestamp values is a Duration and it can be added or subtracted
271 # from a Timestamp. Range is approximately +-10,000 years.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700272 &quot;seconds&quot;: &quot;A String&quot;, # Signed seconds of the span of time. Must be from -315,576,000,000
273 # to +315,576,000,000 inclusive. Note: these bounds are computed from:
274 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;nanos&quot;: 42, # Signed fractions of a second at nanosecond resolution of the span
276 # of time. Durations less than one second are represented with a 0
277 # `seconds` field and a positive or negative `nanos` field. For durations
278 # of one second or more, a non-zero value for the `nanos` field must be
279 # of the same sign as the `seconds` field. Must be from -999,999,999
280 # to +999,999,999 inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 },
282 },
283 &quot;executionId&quot;: &quot;A String&quot;, # A tool results execution ID.
284 # @OutputOnly
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 }</pre>
286</div>
287
288</body></html>