This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# chaintest Summarize off-CPU time by kernel stack + 2 waker stacks | |
# WORK IN PROGRESS. For Linux, uses BCC, eBPF. | |
# | |
# USAGE: chaintest [-h] [-u] [-p PID] [-i INTERVAL] [-T] [duration] | |
# | |
# PLEASE DO NOT RUN THIS IN PRODUCTION! This is a work in progress, intended to | |
# explore chain graphs on Linux, using eBPF capabilities from a particular | |
# kernel version (4.3ish). This tool will eventually get much better. |