1/* 2 * Copyright (C) 2023 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 21// Next: 8 22message AdServicesUiMetric { 23 optional double common_service_initialization_latency = 1; 24 optional double common_service_permission_check_latency = 2; 25 optional double common_service_ux_engine_flow_latency = 3; 26 optional double main_activity_creation_latency = 4; 27 optional double consent_manager_initialization_latency = 5; 28 optional double consent_manager_read_latency = 6; 29 optional double consent_manager_write_latency = 7; 30} 31 32// Next: 2 33message AdServicesAdIdMetric { 34 optional double latency = 1; 35} 36 37// Next: 2 38message AdServicesAppSetIdMetric { 39 optional double latency = 1; 40} 41 42// Next: 5 43message OnDevicePersonalizationMetric { 44 optional double managing_service_initialization_latency = 1; 45 optional double service_delegate_execute_flow_latency = 2; 46 optional double service_delegate_request_surface_package_latency = 3; 47 optional double service_delegate_register_web_trigger_latency = 4; 48} 49 50// Next: 5 51message AdServicesMetric { 52 repeated AdServicesUiMetric ui_metric = 1; 53 repeated AdServicesAdIdMetric ad_id_metric = 2; 54 repeated AdServicesAppSetIdMetric app_set_id_metric = 3; 55 repeated OnDevicePersonalizationMetric odp_metric = 4; 56}