[all-commits] [llvm/llvm-project] 1baa6f: [llvm][ELF] Add statistics on various section size...

Arthur Eubanks via All-commits all-commits at lists.llvm.org
Thu Aug 8 14:14:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1baa6f75f34068a0b3fc772457deeed2d44287f8
      https://github.com/llvm/llvm-project/commit/1baa6f75f34068a0b3fc772457deeed2d44287f8
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2024-08-08 (Thu, 08 Aug 2024)

  Changed paths:
    M llvm/lib/MC/ELFObjectWriter.cpp
    A llvm/test/CodeGen/X86/section-stats.ll

  Log Message:
  -----------
  [llvm][ELF] Add statistics on various section sizes (#102363)

Useful with other infrastructure that consume LLVM statistics to get an
idea of distribution of section sizes.

The breakdown of various section types is subject to change, this is
just an initial go at gather some sort of stats.

Example stats compiling X86ISelLowering.cpp (-g1):

```
        "elf-object-writer.AllocROBytes": 308268,
        "elf-object-writer.AllocRWBytes": 6240,
        "elf-object-writer.AllocTextBytes": 1659203,
        "elf-object-writer.DebugBytes": 3180386,
        "elf-object-writer.OtherBytes": 5862,
        "elf-object-writer.RelocationBytes": 2623440,
        "elf-object-writer.StrtabBytes": 228599,
        "elf-object-writer.SymtabBytes": 120336,
        "elf-object-writer.UnwindBytes": 85216,
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list