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