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// Measure Android IO stats in a trace. 22// Note: This is an aggregated metric, for unaggregated metrics look at 23// AndroidIoUnaggregated in io_unagg_metric.proto. 24message AndroidIo { 25 // Next id: 3 26 // Stats for Counters in an f2fs file system. 27 // Counters are available for various operations. 28 message F2fsCounterStats { 29 optional string name = 1; 30 optional double max = 2; 31 optional double sum = 3; 32 optional double min = 5; 33 optional int64 dur = 6; 34 optional int64 count = 7; 35 optional double avg = 8; 36 } 37 // Aggregated stats for write operations in an f2fs file system. 38 message F2fsWriteStats { 39 optional int64 total_write_count = 1; 40 optional int64 distinct_processes = 2; 41 optional int64 total_bytes_written = 3; 42 optional int64 distinct_device_count = 4; 43 optional int64 distinct_inode_count = 5; 44 optional int64 distinct_thread_count = 6; 45 } 46 repeated F2fsCounterStats f2fs_counter_stats = 1; 47 repeated F2fsWriteStats f2fs_write_stats = 2; 48} 49