]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/readdist_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / readdist_example.txt
1 The following is an example of the readdist.d script,
2
3
4 Here the readdist.d script is run for a few seconds, then Ctrl-C is hit,
5
6    # readdist.d
7    dtrace: description 'sysinfo:::readch ' matched 4 probes
8    ^C
9    [...]
10      gnome-terminal
11               value  ------------- Distribution ------------- count
12                  16 |                                         0
13                  32 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   15
14                  64 |@@@                                      1
15                 128 |                                         0
16    
17      Xorg
18               value  ------------- Distribution ------------- count
19                  -1 |                                         0
20                   0 |@@@@@@@@@@@@@@@@@@@                      26
21                   1 |                                         0
22                   2 |                                         0
23                   4 |                                         0
24                   8 |@@@@                                     6
25                  16 |@                                        2
26                  32 |@                                        2
27                  64 |                                         0
28                 128 |@@@@@@@@                                 11
29                 256 |@@@                                      4
30                 512 |                                         0
31
32 This allows us to understand the read behaviour of each process. The
33 Xorg command has executed 26 reads that returned 0 bytes, through
34 to 4 reads that were at least 256 bytes (up to 511). 
35