5.72 BCC工具之wakeuptime.py解读

一,工具简介

wakeuptime工具追踪工作在工作队列中的等待情况,并记录工作的排队延迟(时间)分布,当按下 Ctrl-C 时,将其以直方图的形式打印出来。

二,代码示例

#!/usr/bin/env python

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

# arguments
examples = """examples:
    ./wqlat                   # summarize workqueue latency as a histogram
    ./wqlat 1 10              # print 1 second summaries, 10 times
    ./wqlat -W 1 10           # print 1 second, 10 times per workqueue
    ./wqlat -NT 1             # 1s summaries, nanoseconds, and timestamps
    ./wqlat -w nvmet_tcp_wq 1 # 1s summaries for workqueue nvmet_tcp_wq
"""
parser = argparse.ArgumentParser(
    description="Summarize workqueue request latency as histograms.",
    formatter_class=argparse.RawDescriptionHelpFormatter,
    epilog=examples)
parser.add_argument("-T", "--timestam

相关推荐

  1. 5.52 BCC工具dbslower.py解读

    2024-03-18 10:48:02       47 阅读
  2. 5.8 BCC工具mysqld_query.py解读

    2024-03-18 10:48:02       52 阅读
  3. 5.54 BCC工具dbstat.py解读

    2024-03-18 10:48:02       45 阅读
  4. 5.56 BCC工具funcslower.py解读

    2024-03-18 10:48:02       45 阅读
  5. 5.53 BCC工具dbslower.py解读

    2024-03-18 10:48:02       41 阅读
  6. 5.49 BCC工具rdmaucma.py解读

    2024-03-18 10:48:02       42 阅读
  7. 5.69 BCC工具runqlen.py解读

    2024-03-18 10:48:02       46 阅读
  8. 5.82 BCC工具tcpdrop.py解读

    2024-03-18 10:48:02       39 阅读
  9. 5.70 BCC工具runqslower.py解读

    2024-03-18 10:48:02       35 阅读
  10. 5.72 BCC工具wakeuptime.py解读

    2024-03-18 10:48:02       43 阅读

最近更新

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

    2024-03-18 10:48:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-18 10:48:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-03-18 10:48:02       82 阅读
  4. Python语言-面向对象

    2024-03-18 10:48:02       91 阅读

热门阅读

  1. mysql转达梦的python脚本

    2024-03-18 10:48:02       32 阅读
  2. python中pyinstaller打包带资源的程序-pgzreo

    2024-03-18 10:48:02       43 阅读
  3. 阻塞和异步

    2024-03-18 10:48:02       42 阅读
  4. 使用verilog实现井字棋游戏设计及其testbench

    2024-03-18 10:48:02       42 阅读
  5. VSCODE的常用插件

    2024-03-18 10:48:02       40 阅读
  6. js基础语法大全(时间戳,uuid,字符串转json)

    2024-03-18 10:48:02       43 阅读
  7. 【无标题】

    2024-03-18 10:48:02       38 阅读