使用rbspy 分析ruby应该性能

参考使用

下载软件包,对于centos 7 有问题的可以尝试使用我构建的https://github.com/rongfengliang/rbspy-binary

  • 命令
./rbspy  record  -p 24759
  • 效果

 

 

问题

  • version `GLIBC_2.18' not found
    使用官方的编译包运行时候的问题
  • 原因
    编译时候依赖的glibc版本问题,可以找台兼容的主机基于源码构建rbspy
  • 解决方法
    自己编译,我已经编译了一个版本的

说明

官方提供的使用也是比较全的,很值得参考下,而且关于多线程,以及rbspy 内部处理机制也有比较完整的说明

参考资料

https://github.com/rbspy/rbspy
https://rbspy.github.io/
https://github.com/rongfengliang/rbspy-binary
https://rbspy.github.io/using-rbspy/
https://github.com/benfred/py-spy
https://github.com/uber-archive/pyflame

posted on 2021-09-14 13:16  荣锋亮  阅读(91)  评论(0编辑  收藏  举报

导航