perf-tools 简单试用

per-tools 是性能优化大师brendan gregg 就有perf 以及ftrace 编写的性能优化工具集
提供了io 、网络、系统调用。。。大部分方面的性能分析工具。

一张参考图

 

 

安装

  • clone 代码
 
git clone --depth 1 https://github.com/brendangregg/perf-tools
  • 基本使用
    查看io 延迟
 
./iolatency -Q

效果

 ./iolatency -Q
Tracing block I/O. Output every 1 seconds. Ctrl-C to end.
  >=(ms) .. <(ms) : I/O |Distribution |
       0 -> 1 : 0 | |
       1 -> 2 : 0 | |
       2 -> 4 : 0 | |
       4 -> 8 : 0 | |
       8 -> 16 : 2 |######################################|
  >=(ms) .. <(ms) : I/O |Distribution |
       0 -> 1 : 0 | |
  >=(ms) .. <(ms) : I/O |Distribution |
       0 -> 1 : 0 | |
  >=(ms) .. <(ms) : I/O |Distribution |
       0 -> 1 : 0 | |
^C
 

说明

perf-tools 使用简单,同时github 上也提供了比较全的demo,可以方便学习

参考资料

https://github.com/brendangregg/perf-tools

posted on   荣锋亮  阅读(2127)  评论(0编辑  收藏  举报

编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示