[cfe-commits] [PATCH] Added some preprocessor memory usage stats to -cc1 -print-stats

Douglas Gregor dgregor at apple.com
Fri Aug 10 13:22:16 PDT 2012


LGTM, thanks!

	- Doug

On Aug 10, 2012, at 12:22 PM, Alexander Kornienko <alexfh at google.com> wrote:

> A minor patch. Need this to profile memory effect of upcoming changes to storage of macros. Outputs preprocessor memory usage as follows:
> 
>  Preprocessor Memory: 4977591B total
>    BumpPtr: 4288512
>    Macro Expanded Tokens: 417768
>    Predefines Buffer: 8135
>    Macros: 262144
>    #pragma push_macro Info: 0
>    Poison Reasons: 1024
>    Comment Handlers: 8
> 
> -- 
> Best regards,
> Alexander Kornienko
> 
> <preprocessor-mem-stats.diff>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120810/1bccd2bf/attachment.html>


More information about the cfe-commits mailing list