aras-p / ClangBuildAnalyzer

Clang build analysis tool using -ftime-trace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

distinguish external headers

Trass3r opened this issue · comments

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.

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?

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