CPU高速缓存

ps -o vsz,rss,tsiz,dsiz,majflt,minflt,pmem,command


cat /proc/pid/status

cat /proc/pid/maps

memprof图形化内存使用工具
valgrind分析程序的内存详细使用情况:https://blog.csdn.net/primeprime/article/details/79539504
https://www.ibm.com/developerworks/cn/linux/l-cn-valgrind/
检查内存泄漏:valgrind --leak-check=full --show-reachable=yes --trace-children= yes ./a.out

valgrind+kcachegrind分析程序性能:https://blog.csdn.net/fengjingge/article/details/41727265
查看共享内存使用情况:ipcs
网友评论