xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/stacksize_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a domonstration of the stacksize.d script.
2
3
4Here it is run for a few seconds then Ctrl-C is hit. The output prints
5distrubition plots of the size of the user stack as the value, and the
6number of times sampled at that size as the count.
7
8   # ./stacksize.d
9   Sampling... Hit Ctrl-C to end
10
11
12     automountd
13              value  ------------- Distribution ------------- count
14                128 |                                         0
15                256 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
16                512 |                                         0
17
18     nscd
19              value  ------------- Distribution ------------- count
20                 64 |                                         0
21                128 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3
22                256 |                                         0
23
24     svc.startd
25              value  ------------- Distribution ------------- count
26                128 |                                         0
27                256 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
28                512 |                                         0
29
30     sshd
31              value  ------------- Distribution ------------- count
32               1024 |                                         0
33               2048 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
34               4096 |                                         0
35
36     dtrace
37              value  ------------- Distribution ------------- count
38                512 |                                         0
39               1024 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5
40               2048 |                                         0
41
42     nautilus
43              value  ------------- Distribution ------------- count
44               1024 |                                         0
45               2048 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3
46               4096 |                                         0
47
48     Xvnc
49              value  ------------- Distribution ------------- count
50               1024 |                                         0
51               2048 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3
52               4096 |                                         0
53
54     gnome-vfs-daemon
55              value  ------------- Distribution ------------- count
56               2048 |                                         0
57               4096 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3
58               8192 |                                         0
59
60     Xorg
61              value  ------------- Distribution ------------- count
62               2048 |                                         0
63               4096 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 6
64               8192 |                                         0
65
66     gnome-terminal
67              value  ------------- Distribution ------------- count
68               1024 |                                         0
69               2048 |@@@@@@@@@@@@@@@@                         7
70               4096 |@@@@@@@@@@@@@@@@@@@@@@@@                 11
71               8192 |                                         0
72
73     acroread
74              value  ------------- Distribution ------------- count
75               1024 |                                         0
76               2048 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 92
77               4096 |                                         0
78
79     perl
80              value  ------------- Distribution ------------- count
81                512 |                                         0
82               1024 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1945
83               2048 |                                         0
84
85
86   Errors:
87
88