summaryrefslogtreecommitdiff
path: root/external/cddl/dtracetoolkit/dist/Examples/readbytes_example.txt
blob: fa2923b1b649d3185b831cf080f3cb5315fa1164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
The following is a demonstration of the readbytes.d script,


Here the readbytes.d script is run for a few seconds, then Ctrl-C is hit,

   # readbytes.d
   dtrace: description 'sysinfo:::readch ' matched 4 probes
   ^C
   
     mozilla-bin                                                      16
     gnome-smproxy                                                    64
     metacity                                                         64
     dsdm                                                             64
     wnck-applet                                                      64
     xscreensaver                                                     96
     gnome-terminal                                                  900
     ttymon                                                         5952
     Xorg                                                          17544

In this interval the Xorg command has successfully read 17.5 Kb, while
ttymon has read 5952 bytes.