xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/tcl_stat_example.txt (revision 8e33eff89e26cf71871ead62f0d5063e1313c33a)
1Following are examples of running tcl_stat.d on Tcl programs.
2
3tcl_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 sh_stat.d script reflecting the Code/Tcl/func_abc.tcl program.
8
9# tcl_stat.d
10TIME                 EXEC/s   PROC/s    CMD/s OBJNEW/s OBJFRE/s     OP/s
112007 Sep 26 23:34:36      0        0        0        0        0        0
122007 Sep 26 23:34:37      1        2       75      911      805      377
132007 Sep 26 23:34:38      0        1        3        4        2       10
142007 Sep 26 23:34:39      0        1        3        3        2       10
152007 Sep 26 23:34:40      0        0        1        7        8        3
162007 Sep 26 23:34:41      0        0        0        0        0        0
172007 Sep 26 23:34:42      0        0        0        0        0        0
18^C
19
20 At 2007 Sep 26 23:34:37 we can see that there was one Tcl program executed
21(this number may include those programs without Tcl provider support), two
22procedures called, 75 new commands created, 911 objects created,  805 objects
23freed, and 377 bytecode operations.
24
25