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 21import "protos/perfetto/metrics/android/android_blocking_call.proto"; 22import "protos/perfetto/metrics/android/process_metadata.proto"; 23 24// Blocking calls inside Android CUJs. Shows count and total duration for each. 25message AndroidBlockingCallsCujMetric { 26 repeated Cuj cuj = 1; 27 28 // Next id: 7 29 message Cuj { 30 // ID of the CUJ that is unique within the trace. 31 optional int32 id = 1; 32 33 // Name of the CUJ, extracted from the CUJ jank or latency trace marker. 34 // For example SHADE_EXPAND_COLLAPSE from J<SHADE_EXPAND_COLLAPSE>. 35 optional string name = 2; 36 37 // Details about the process (uid, version, etc) 38 optional AndroidProcessMetadata process = 3; 39 40 // ts of the CUJ trace marker slice, in ns. 41 optional int64 ts = 4; 42 43 // dur of the CUJ trace marker slice, in ns. 44 optional int64 dur = 5; 45 46 // List of blocking calls on the process main thread. 47 repeated AndroidBlockingCall blocking_calls = 6; 48 } 49} 50