forked from OSchip/llvm-project
[AST] Add individual size info for Types in -print-stats
This mirrors what is done for Decls and Stmts in the -print-stats output, ie instead of printing "57426 LValueReference types" we print "57426 LValueReference types, 40 each (2297040 bytes)". llvm-svn: 339024
This commit is contained in:
parent
56b31d8d75
commit
58e0322545
|
@ -885,7 +885,9 @@ void ASTContext::PrintStats() const {
|
|||
#define TYPE(Name, Parent) \
|
||||
if (counts[Idx]) \
|
||||
llvm::errs() << " " << counts[Idx] << " " << #Name \
|
||||
<< " types\n"; \
|
||||
<< " types, " << sizeof(Name##Type) << " each " \
|
||||
<< "(" << counts[Idx] * sizeof(Name##Type) \
|
||||
<< " bytes)\n"; \
|
||||
TotalBytes += counts[Idx] * sizeof(Name##Type); \
|
||||
++Idx;
|
||||
#define ABSTRACT_TYPE(Name, Parent)
|
||||
|
|
Loading…
Reference in New Issue