file_sections.proto 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.
  14. syntax = "proto2";
  15. package file_sections;
  16. message SectionDescriptior {
  17. // Name of the section (e.g. .rodata)
  18. optional string name = 1;
  19. // Size of that section as part of the file.
  20. optional uint64 file_size = 2;
  21. // Size of that section when loaded in memory.
  22. optional uint64 vm_size = 3;
  23. }
  24. message File {
  25. // Relative path from $OUT_DIR.
  26. optional string path = 1;
  27. // File sections.
  28. repeated SectionDescriptior sections = 2;
  29. }
  30. message FileSizeMetrics {
  31. repeated File files = 1;
  32. }