1 The following are examples of running rb_stat.d on Ruby programs.
3 rb_stat.d shows you the number of events per second that have happened since
4 the last line output. The default interval is 1 second, but you can specify
5 other intervals as arguments to the script.
7 This shows the rb_stat.d script reflecting the Code/Ruby/func_slow.rb script.
10 TIME EXEC/s METHOD/s OBJNEW/s OBJFRE/s RAIS/s RESC/s GC/s
11 2007 Sep 17 03:59:07 0 0 0 0 0 0 0
12 2007 Sep 17 03:59:08 0 210426 7 0 0 0 0
13 2007 Sep 17 03:59:09 0 724067 0 0 0 0 0
14 2007 Sep 17 03:59:10 0 730877 0 0 0 0 0
15 2007 Sep 17 03:59:11 0 134645 0 0 0 0 0
16 2007 Sep 17 03:59:12 0 0 0 0 0 0 0
17 2007 Sep 17 03:59:13 0 0 0 0 0 0 0
20 We can see that at 2007 Sep 17 03:59:08 there were 0 new Ruby programs
21 executed, 210426 methods called, 7 objects created, 0 objects freed, 0 raises,
22 0 rescues and 0 garbage collects.