llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.92k stars 11.52k forks source link

ThinLTO cache statistics #56545

Open Trass3r opened 2 years ago

Trass3r commented 2 years ago

https://clang.llvm.org/docs/ThinLTO.html#incremental

I guess it would be useful to have statistics about how many cache hits/misses occurred during build, similar to https://ccache.dev/manual/4.6.1.html#_cache_statistics

zcfh commented 10 months ago

I would like to know the current progress of this feature. Is there any plan to implement it? Or is it already implemented, but this issue is out of date.

EugeneZelenko commented 10 months ago

@teresajohnson

teresajohnson commented 10 months ago

Since I was cc'ed: I have no plans to implement this (not a user of the built in caching support). Would be happy to review any patches. For the default local cache used by in-process ThinLTO, the support is implemented in llvm/lib/Support/Caching.cpp and llvm/lib/Support/CachePruning.cpp

Trass3r commented 10 months ago

not a user of the built in caching support

Are there alternatives?

teresajohnson commented 10 months ago

not a user of the built in caching support

Are there alternatives?

Not in LLVM. My users are all building with distributed ThinLTO via bazel, which has its own build cache.