查看緩存的工具--緩存命中率--valgrind,perf

看緩存命中率 運用: 有兩個程序,須要比較哪一個程序更好?就須要比較程序的命中率,命中率高的就選用 [root@localhost ~]# yum -y install valgrind [root@localhost ~]# valgrind --tool=cachegrind uname #uname爲程序名web ==4948== Cachegrind, a cache and branch
相關文章
相關標籤/搜索