【问题标题】:How to use `ccache -s` to show hit rates for different CCACHE_DIR如何使用 `ccache -s` 显示不同 CCACHE_DIR 的命中率
【发布时间】:2020-10-16 04:01:23
【问题描述】:

当我使用ccache -s 时,我会变成这样。

root@iZwz98um4r4f2aucz24e1yZ:~# ccache -s
cache directory                     /root/.ccache
primary config                      /root/.ccache/ccache.conf
secondary config      (readonly)    /etc/ccache.conf

但是当我为不同的 C++ 项目设置不同的环境CCACHE_DIR 时,我如何获得我的CCACHE_DIR 统计信息?有没有参数可以做到这一点?

【问题讨论】:

    标签: c++ jenkins devops ccache


    【解决方案1】:

    方法是在运行ccache -s 时设置CCACHE_DIR(如果需要,可以暂时设置),例如这样:

    CCACHE_DIR=/path/to/the/cache/dir ccache -s
    

    【讨论】:

      猜你喜欢
      • 2019-05-18
      • 2020-12-12
      • 1970-01-01
      • 2013-02-13
      • 2010-12-21
      • 1970-01-01
      • 1970-01-01
      • 2014-12-24
      • 1970-01-01
      相关资源
      最近更新 更多