5.117 BCC工具之xfsdist.py解读

一,工具简介

xfsdist 追踪 XFS 的读取、写入、打开和 fsyncs 操作,并将其延迟以 2 的幂次直方图的形式进行总结。例如:

二,代码示例

#!/usr/bin/env python

from __future__ import print_function
from bcc import BPF
from time import sleep, strftime
import argparse

# arguments
examples = """examples:
    ./xfsdist            # show operation latency as a histogram
    ./xfsdist -p 181     # trace PID 181 only
    ./xfsdist 1 10       # print 1 second summaries, 10 times
    ./xfsdist -m 5       # 5s summaries, milliseconds
"""
parser = argparse.ArgumentParser(
    description="Summarize XFS operation latency",
    formatter_class=argparse.RawDescriptionHelpFormatter,
    epilog=examples)
parser.add_argument("-T", "--notimestamp", action="store_true",
    help="don't include timestamp on interval output")
parser.add_argument("-m", "--milliseconds", action="sto

相关推荐

  1. 5.8 BCC工具mysqld_query.py解读

    2024-04-09 13:46:03       52 阅读
  2. 5.54 BCC工具dbstat.py解读

    2024-04-09 13:46:03       48 阅读
  3. 5.56 BCC工具funcslower.py解读

    2024-04-09 13:46:03       47 阅读
  4. 5.53 BCC工具dbslower.py解读

    2024-04-09 13:46:03       41 阅读
  5. 5.49 BCC工具rdmaucma.py解读

    2024-04-09 13:46:03       42 阅读
  6. 5.52 BCC工具dbslower.py解读

    2024-04-09 13:46:03       47 阅读
  7. 5.69 BCC工具runqlen.py解读

    2024-04-09 13:46:03       46 阅读
  8. 5.82 BCC工具tcpdrop.py解读

    2024-04-09 13:46:03       41 阅读
  9. 5.70 BCC工具runqslower.py解读

    2024-04-09 13:46:03       35 阅读
  10. 5.72 BCC工具wakeuptime.py解读

    2024-04-09 13:46:03       43 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-09 13:46:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-09 13:46:03       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-09 13:46:03       87 阅读
  4. Python语言-面向对象

    2024-04-09 13:46:03       96 阅读

热门阅读

  1. 第 9 场 小白入门赛 -- 蓝桥杯

    2024-04-09 13:46:03       35 阅读
  2. 关于前端资源文件打包问题

    2024-04-09 13:46:03       37 阅读
  3. SQL中如何添加数据

    2024-04-09 13:46:03       33 阅读
  4. tcpdump简介

    2024-04-09 13:46:03       32 阅读
  5. AD767系列12位数字模拟转换器

    2024-04-09 13:46:03       30 阅读
  6. 6 Reverse Linked List

    2024-04-09 13:46:03       39 阅读
  7. js怎样控制浏览器前进、后退、页面跳转

    2024-04-09 13:46:03       37 阅读
  8. 自然语言处理

    2024-04-09 13:46:03       35 阅读