[WIP] Perf 是怎么做的

Reader mode is not fully supported on this site; please use it with caution.

好像跟gdb怎么做的还是有差别的
gdb用的ptrace
【一文看懂 | GDB 底层实现原理】【转载】_gdb底层原理-CSDN博客
用图文带你彻底弄懂GDB调试原理-腾讯云开发者社区-腾讯云