1/* 2 * Copyright (C) 2024 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 17 syntax = "proto2"; 18 19 package perfetto.protos; 20 21 // Provides aggregated information about broadcasts 22 message AndroidBroadcastsMetric { 23 // Next id: 5 24 // Stats for Broadcasts aggregated with count. 25 message BroadcastCountAggregation { 26 optional string name = 1; 27 optional int64 count = 2; 28 } 29 // Stats for Broadcasts aggregated with duration. 30 message BroadcastDurationAggregation { 31 optional string name = 1; 32 optional double avg_duration = 2; 33 optional int64 max_duration = 3; 34 optional int64 sum_duration = 4; 35 } 36 repeated BroadcastCountAggregation process_count_by_intent = 1; 37 repeated BroadcastCountAggregation broadcast_count_by_process = 2; 38 repeated BroadcastDurationAggregation brodcast_duration_agg_by_intent = 3; 39 repeated BroadcastDurationAggregation brodcast_duration_agg_by_process = 4; 40 } 41