|
44 | 44 | #include "llvm/Object/CVDebugRecord.h"
|
45 | 45 | #include "llvm/Support/CRC.h"
|
46 | 46 | #include "llvm/Support/Endian.h"
|
| 47 | +#include "llvm/Support/FormatAdapters.h" |
47 | 48 | #include "llvm/Support/FormatVariadic.h"
|
48 | 49 | #include "llvm/Support/Path.h"
|
49 | 50 | #include "llvm/Support/ScopedPrinter.h"
|
@@ -1247,15 +1248,19 @@ void PDBLinker::printStats() {
|
1247 | 1248 | << std::string(80, '-') << '\n';
|
1248 | 1249 |
|
1249 | 1250 | auto print = [&](uint64_t v, StringRef s) {
|
1250 |
| - stream << format_decimal(v, 15) << " " << s << '\n'; |
| 1251 | + stream << formatv("{0}", |
| 1252 | + fmt_align(formatv("{0:N}", v), AlignStyle::Right, 20)) |
| 1253 | + << " " << s << '\n'; |
1251 | 1254 | };
|
1252 | 1255 |
|
1253 | 1256 | print(ctx.objFileInstances.size(),
|
1254 | 1257 | "Input OBJ files (expanded from all cmd-line inputs)");
|
| 1258 | + print(ctx.consumedInputsSize, |
| 1259 | + "Size of all consumed OBJ files (non-lazy), in bytes"); |
1255 | 1260 | print(ctx.typeServerSourceMappings.size(), "PDB type server dependencies");
|
1256 | 1261 | print(ctx.precompSourceMappings.size(), "Precomp OBJ dependencies");
|
1257 | 1262 | print(nbTypeRecords, "Input type records");
|
1258 |
| - print(nbTypeRecordsBytes, "Input type records bytes"); |
| 1263 | + print(nbTypeRecordsBytes, "Size of all input type records, in bytes"); |
1259 | 1264 | print(builder.getTpiBuilder().getRecordCount(), "Merged TPI records");
|
1260 | 1265 | print(builder.getIpiBuilder().getRecordCount(), "Merged IPI records");
|
1261 | 1266 | print(pdbStrTab.size(), "Output PDB strings");
|
|
0 commit comments