El 09/10/25 a las 10:53, Joel Rosdahl escribió: > On Wed, Oct 8, 2025, at 18:38, Santiago Ruano Rincón via ccache wrote: > > > Would you mind enlighten us about: is it a good idea to also reset/zero > > the stats between two different jobs? > > See the discussion in https://github.com/ccache/ccache/pull/1639 which lead to > this documentation improvement: > > https://github.com/ccache/ccache/commit/e799280a6fe403e9ef766c2343effaf4423da65a > > So yes, if you use ccache by downloading and uploading the whole cache for > each build job à la GitHub's or GitLab's caching mechanism then counters are > not tracking global usage of the cache anyway (and only one job accesses the > local cache at the same time) so using --zero-stats before the job is > perfectly fine. > > Regards > Joel
Thanks! That's very helpful. And actually, my understand was that zeroing the stats would prevent from "tracking the entire lifetime of the cache", while comparing the stats before and after the build. In any case, using stats logs seems to be a better approach for I had in mind. Cheers, -- Santiago
signature.asc
Description: PGP signature
_______________________________________________ ccache mailing list [email protected] https://lists.samba.org/mailman/listinfo/ccache
