[cfe-commits] r69987 - in /cfe/trunk: include/clang/Frontend/PCHBitCodes.h include/clang/Lex/HeaderSearch.h lib/Frontend/PCHReader.cpp lib/Frontend/PCHWriter.cpp lib/Lex/HeaderSearch.cpp lib/Lex/PPLexerChange.cpp test/PCH/objc_import.h test/PCH/objc_import.m

steve naroff snaroff at apple.com
Fri Apr 24 13:49:27 PDT 2009


Here are the PCH stats (which jive with my previous email).

*** PCH Statistics:
   2/26104 types read (0.007662%)
   2/70883 declarations read (0.002822%)
   589/51520 identifiers read (1.143245%)
   0/34753 statements read (0.000000%)
   550/6275 macros read (8.764940%)
   0/5012 lexical declcontexts read (0.000000%)
   0/4499 visible declcontexts read (0.000000%)

snaroff

On Apr 24, 2009, at 4:47 PM, steve naroff wrote:

>
> On Apr 24, 2009, at 4:05 PM, Douglas Gregor wrote:
>
>>
>> On Apr 24, 2009, at 1:03 PM, Steve Naroff wrote:
>>>
>> If there are a lot of these controlling macros, we're going to be
>> deserializing a bunch of macro definitions when we bring in the
>> header information. Did you look to see how this affects the macro
>> statistics on, e.g., Carbon.h PCH (using -print-stats)?
>>
>
> I'll check, however the number is likely to be around 550 (see below).
> For C headers, almost all headers have an #ifndef guard. For Cocoa.h,
> the number will be much lower (since ObjC headers typically depend on
> #import).
>
> *** HeaderSearch Stats:
> 562 files tracked.
>   3 #import/#pragma once files.
>   551 included exactly once.
>   5 max times a file is included.
>   1474 #include/#include_next/#import.
>     896 #includes skipped due to the multi-include optimization.
> 67 framework lookups.
> 30 subframework lookups.
>
> snaroff
>
>> 	- Doug
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list