Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Includes aren't included in the CompileScore output for Clang -ftime-trace #26

Open
missmah opened this issue Jun 30, 2022 · 2 comments

Comments

@missmah
Copy link

missmah commented Jun 30, 2022

There are no includes profiled, and there's no way to profile or visualize includes for my clang builds using -ftime-trace; is this expected? Or is it potentially a bug with the compiler I'm using?

image

@missmah
Copy link
Author

missmah commented Jun 30, 2022

image
I can deduce here that <filesystem> included <chrono>, which is somewhat useful; but, it would be much more useful to know exactly which hierarchy of includes these were included by (or just directly by the TU itself, if that was the case).

@Viladoman
Copy link
Owner

Viladoman commented Jun 30, 2022

Oh wow! What Clang version are you using?
Maybe my data extractor for Clang got outdated and they are now marking things up slighlty different.

Regarding the second question, if the include data got found ( you can try that meanwhile on the msvc extractor ), you can ask to see the 'Includers' view which will show who includes each dependency up to the TUs themselves.

Timeline image

The numbers are how many TUs ended up including that particular file.

Super useful to cull dependencies mid line. Maybe your include is expensive by accumulation, so removing a dependency somewhere else that account for half of the counts can be helpful.

EDIT: It also looks like the full time method and threads retrieval on Clang is not working properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants