xref: /aosp_15_r20/external/perfetto/protos/perfetto/metrics/android/camera_unagg_metric.proto (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1/*
2 * Copyright (C) 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package perfetto.protos;
20
21message AndroidCameraUnaggregatedMetric {
22  message Value {
23    optional int64 ts = 1;
24    optional double gca_rss_val = 2;
25    optional double hal_rss_val = 3;
26    optional double cameraserver_rss_val = 4;
27    optional double dma_val = 5;
28    optional double value = 6;
29  }
30
31  // Timeseries for the sum of DMA and RSS across GCA, cameraserver
32  // and HAL. This provides a single number for the memory
33  // pressure using the camera is putting on the rest of the
34  // system.
35  //
36  // Note: this number assumes that all DMA pressure is coming
37  // from the camera as this is usually a pretty good
38  // approximation. Being more accurate here would increase the
39  // complexity of the metric significantly.
40  //
41  // Note: if there are multiple GCA/cameraserver/HAL processes
42  // in the trace, this metric will simply take the latest
43  // one in the trace and ignore the others.
44  repeated Value gc_rss_and_dma = 1;
45}
46