标签:
1. 编译阶段
gcc: -Wall -Werror -O2
make
nm: nm -C a.o
c++filt
strip
objdump
readelf
2. 链接
ldd: ldd ./a.out
3. 查错
valgrind: valgrind --tool=memcheck --leak-check=full --track-fds=yes ./a.out
gdb: gdb attach pid, gdb core ./a.out
addr2line: addr2line -e a.out 0x841
dmesg: dmesg | tail
strace: strace ./a.out
cat /proc/sys/net/core/rmem_max
cat /proc/interrupts
cat /proc/cpuinfo
cat /pro/meminfo
4. 性能优化
vmstat: vmstat 1
iostat: iostat -x
perf
ps
top
cat /proc/pid/statm
ls /proc/pid/fd | wc -l
5. 网络
netstat: netstat -anp
tcpdump: tcpdump -i eth1 udp port 28000, tcpdump src host 202.38.75.41
ping
traceroot
6. 通用
awk, sed, xargs, nohup,tail -f, diff,df, du, od -tx1 -Ax1 aa.txt, ps -elf, expect
7. 操作系统
lsof: lsof -a
ipcs: ipcs -m
ipcrm: ipcrm -M id
参考文献:http://blog.csdn.net/liangkwok/article/details/7542345
标签:
原文地址:http://www.cnblogs.com/Torstan/p/4637469.html