-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/cpudist: Add extension summary support (#4131)
Sometimes, I want to known total on-CPU or off-CPU time and count (same as context switch times) at a fixed interval (for example: 1s). Like #3384, This patch try to add an option -e to show extension summary (average/total/count). $ ./cpudist.py -p $(pgrep -nx mysqld) -e 1 usecs : count distribution 0 -> 1 : 4123 |************** | 2 -> 3 : 11690 |****************************************| 4 -> 7 : 1668 |***** | 8 -> 15 : 859 |** | 16 -> 31 : 618 |** | 32 -> 63 : 290 | | 64 -> 127 : 247 | | 128 -> 255 : 198 | | 256 -> 511 : 161 | | 512 -> 1023 : 370 |* | 1024 -> 2047 : 98 | | 2048 -> 4095 : 6 | | 4096 -> 8191 : 16 | | avg = 33 usecs, total: 682091 usecs, count: 20383
- Loading branch information
1 parent
300fc6a
commit 4a60443
Showing
3 changed files
with
66 additions
and
18 deletions.
There are no files selected for viewing
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
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
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