aras-p / ClangBuildAnalyzer

Clang build analysis tool using -ftime-trace
The Unlicense
1.01k stars 65 forks source link

distinguish external headers #13

Open Trass3r opened 5 years ago

Trass3r commented 5 years ago

I guess it could come in handy to have a separate section "Expensive external headers" for headers not coming from the current source tree. To find out which headers could easily go into a PCH.

Not sure about that though. If internal headers dominate like in llvm it's harder to use PCH.

aras-p commented 5 years ago

In completely arbitrary case it's kinda hard to know which headers are external vs which ones aren't. Like say if you have "your own" codebase, then some "3rd party libraries" that you also use, and then "STL" -- which ones are external? Clearly STL is, but are 3rd party libs also? How to tell them apart?

Lectem commented 5 years ago

I think include directories marked as -isystem would be a fit?