1// Copyright 2021 Google Inc. All Rights Reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14syntax = "proto2"; 15 16package file_sections; 17 18message SectionDescriptior { 19 // Name of the section (e.g. .rodata) 20 optional string name = 1; 21 22 // Size of that section as part of the file. 23 optional uint64 file_size = 2; 24 25 // Size of that section when loaded in memory. 26 optional uint64 vm_size = 3; 27} 28 29message File { 30 // Relative path from $OUT_DIR. 31 optional string path = 1; 32 33 // File sections. 34 repeated SectionDescriptior sections = 2; 35} 36 37message FileSizeMetrics { 38 repeated File files = 1; 39} 40