1/* 2 * Copyright (C) 2020 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 SmapsEntry { 22 optional string path = 1; 23 optional uint64 size_kb = 2; 24 optional uint64 private_dirty_kb = 3; 25 optional uint64 swap_kb = 4; 26 27 // for field upload (instead of path). 28 optional string file_name = 5; 29 30 // TODO(crbug.com/1098746): Consider encoding this as incremental values. 31 optional uint64 start_address = 6; 32 optional uint64 module_timestamp = 7; 33 optional string module_debugid = 8; 34 optional string module_debug_path = 9; 35 optional uint32 protection_flags = 10; 36 37 optional uint64 private_clean_resident_kb = 11; 38 optional uint64 shared_dirty_resident_kb = 12; 39 optional uint64 shared_clean_resident_kb = 13; 40 optional uint64 locked_kb = 14; 41 optional uint64 proportional_resident_kb = 15; 42}; 43 44message SmapsPacket { 45 optional uint32 pid = 1; 46 repeated SmapsEntry entries = 2; 47}; 48