llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

ThinLTO cache statistics

Open Trass3r opened this issue 4 years ago • 5 comments

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

Trass3r avatar Jul 15 '22 13:07 Trass3r

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.

zcfh avatar Nov 08 '23 11:11 zcfh

@teresajohnson

EugeneZelenko avatar Nov 08 '23 15:11 EugeneZelenko

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

teresajohnson avatar Nov 08 '23 15:11 teresajohnson

not a user of the built in caching support

Are there alternatives?

Trass3r avatar Nov 08 '23 16:11 Trass3r

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.

teresajohnson avatar Nov 08 '23 16:11 teresajohnson