mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
389bcb458f
This adds a new command line option, -udt-stats, which breaks down the stats of S_UDT records. These are one of the biggest contributors to the size of /DEBUG:FASTLINK PDBs, so they need some additional tools to be able to analyze their usage. This option will dig into each S_UDT record and determine what kind of record it points to, and then break down the statistics by the target type. The goal here is to identify how our object files differ from MSVC object files in S_UDT records, so that we can output fewer of them and reach size parity. llvm-svn: 312276
16 lines
693 B
Plaintext
16 lines
693 B
Plaintext
; RUN: llvm-pdbutil dump -udt-stats %p/Inputs/big-read.pdb | FileCheck %s
|
|
|
|
CHECK: S_UDT Record Stats
|
|
CHECK-NEXT: ============================================================
|
|
CHECK: Record Kind | Count Size
|
|
CHECK-NEXT: -----------------------------
|
|
CHECK-NEXT: LF_ENUM | 3 188
|
|
CHECK-NEXT: LF_POINTER | 39 468
|
|
CHECK-NEXT: LF_UNION | 1 52
|
|
CHECK-NEXT: <simple type> | 43 0
|
|
CHECK-NEXT: LF_PROCEDURE | 1 16
|
|
CHECK-NEXT: LF_STRUCTURE | 27 1,788
|
|
CHECK-NEXT: -----------------------------
|
|
CHECK-NEXT: Total (S_UDT) | 114 2,604
|
|
CHECK-NEXT: -----------------------------
|