]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/tcl_who_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_who_example.txt
1 The following is an example of running tcl_who.d.
2
3 The output produces four fields of interest in tracing tcl calls by process.
4
5 Here we see it running while Code/Tcl/func_slow.tcl and Code/Tcl/func_abc.tcl
6 are executed.  
7 # tcl_who.d
8 Tracing... Hit Ctrl-C to end.
9 ^C
10       PID    UID  CALLS ARGS                                                   
11     16063    100     83 ./tclsh scripts/func_slow.tcl                          
12     16061    100     86 ./tclsh scripts/func_abc.tcl  
13
14 CALLS is a measure of activity, and is a count of the procedures and commands
15 that Tcl called.  The ARGS column shows the process name and arguments given
16 for a particular PID in order to identify the particular Tcl code involved.
17