]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/tcl_stat_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / tcl_stat_example.txt
1 Following are examples of running tcl_stat.d on Tcl programs.
2
3 tcl_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.
6
7 This shows the sh_stat.d script reflecting the Code/Tcl/func_abc.tcl program.
8
9 # tcl_stat.d
10 TIME                 EXEC/s   PROC/s    CMD/s OBJNEW/s OBJFRE/s     OP/s
11 2007 Sep 26 23:34:36      0        0        0        0        0        0
12 2007 Sep 26 23:34:37      1        2       75      911      805      377
13 2007 Sep 26 23:34:38      0        1        3        4        2       10
14 2007 Sep 26 23:34:39      0        1        3        3        2       10
15 2007 Sep 26 23:34:40      0        0        1        7        8        3
16 2007 Sep 26 23:34:41      0        0        0        0        0        0
17 2007 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
22 procedures called, 75 new commands created, 911 objects created,  805 objects
23 freed, and 377 bytecode operations.
24