vmtouch可以查看某个文件在内存的使用。
在分析内存回收的时候,可以作为一个参考工具使用。
下载源码
wget http://hoytech.com/vmtouch/vmtouch.c
编译
gcc -Wall -O3 -std=c99 -o vmtouch vmtouch.c
拷贝
cp vmtouch /usr/local/bin/
具体的使用可以参考官网
vmtouch可以查看某个文件在内存的使用。
在分析内存回收的时候,可以作为一个参考工具使用。
wget http://hoytech.com/vmtouch/vmtouch.c
gcc -Wall -O3 -std=c99 -o vmtouch vmtouch.c
cp vmtouch /usr/local/bin/
具体的使用可以参考官网