输出进程关联的binary
pmap -p [pid]
查看进程所用内存
pmap -d [pid]
查看进程线程数
pstree -p [pid]
ps -T [pid]
process kill self
#ifdef __linux__
snprintf(g_command, sizeof(g_command), "%s %d > /TspCore/%s.%d.pstack",
"/usr/bin/gstack",
g_pid, logical_name, g_pid);
#else
snprintf(g_command, sizeof(g_command), "%s %d > /TspCore/%s.%d.pstack",
"/usr/bin/pstack",
g_pid, logical_name, g_pid);
#endif
system(g_command);
c++filt :符号表mapping
ldd: 查看binary依赖的so
strings: prints the printable character
查看binary源文件(不一定准确)
strings binary |grep “.cxx”
strings binary |grep “.h”