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 AndroidCameraMetric { 22 message Counter { 23 optional double min = 1; 24 optional double max = 2; 25 optional double avg = 3; 26 } 27 28 // Counter for the sum of DMA and RSS across GCA, cameraserver 29 // and HAL. This provides a single number for the memory 30 // pressure using the camera is putting on the rest of the 31 // system. 32 // 33 // Note: this number assumes that all DMA pressure is coming 34 // from the camera as this is usually a pretty good 35 // approximation. Being more accurate here would increase the 36 // complexity of the metric significantly. 37 // 38 // Note: if there are multiple GCA/cameraserver/HAL processes 39 // in the trace, this metric will simply take the latest 40 // one in the trace and ignore the others. 41 optional Counter gc_rss_and_dma = 1; 42} 43