perf-tools simple trial

per-tools is a performance optimization guru brendan gregg there perf and performance optimization tools written in ftrace
provides io, network, system calls. . . Most aspects of performance analysis tools.

A reference to FIG.

 

 

installation

  • Code clone
 
git clone --depth 1 https://github.com/brendangregg/perf-tools
  • Basic use
    View io delay
 
./iolatency -Q

effect

 ./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

Guess you like

Origin www.cnblogs.com/rongfengliang/p/11965558.html