xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Examples/rb_stat_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following are examples of running rb_stat.d on Ruby programs.
2
3rb_stat.d shows you the number of events per second that have happened since
4the last line output.  The default interval is 1 second, but you can specify
5other intervals as arguments to the script.
6
7This shows the rb_stat.d script reflecting the Code/Ruby/func_slow.rb script.
8
9# ./rb_stat.d
10TIME                   EXEC/s METHOD/s OBJNEW/s OBJFRE/s RAIS/s RESC/s   GC/s
112007 Sep 17 03:59:07        0        0        0        0      0      0      0
122007 Sep 17 03:59:08        0   210426        7        0      0      0      0
132007 Sep 17 03:59:09        0   724067        0        0      0      0      0
142007 Sep 17 03:59:10        0   730877        0        0      0      0      0
152007 Sep 17 03:59:11        0   134645        0        0      0      0      0
162007 Sep 17 03:59:12        0        0        0        0      0      0      0
172007 Sep 17 03:59:13        0        0        0        0      0      0      0
18^C
19
20We can see that at 2007 Sep 17 03:59:08 there were 0 new Ruby programs
21executed, 210426 methods called, 7 objects created, 0 objects freed, 0 raises,
220 rescues and 0 garbage collects.
23