1 1.1 christos The following are examples of running the script tcl_ins.d 2 1.1 christos 3 1.1 christos Here it traces as Code/Tcl/func_slow.tcl executes. 4 1.1 christos 5 1.1 christos # tcl_ins.d 6 1.1 christos Tracing... Hit Ctrl-C to end. 7 1.1 christos ^C 8 1.1 christos PID TYPE NAME COUNT 9 1.1 christos 16005 inst foreach_start4 1 10 1.1 christos 16005 inst jumpTrue1 1 11 1.1 christos 16005 inst lappendScalar1 1 12 1.1 christos 16005 inst list 1 13 1.1 christos 16005 inst strneq 1 14 1.1 christos 16005 inst beginCatch4 2 15 1.1 christos 16005 inst dup 2 16 1.1 christos 16005 inst endCatch 2 17 1.1 christos 16005 inst eq 2 18 1.1 christos 16005 inst land 2 19 1.1 christos 16005 inst storeScalarStk 2 20 1.1 christos 16005 inst foreach_step4 4 21 1.1 christos 16005 inst not 4 22 1.1 christos 16005 inst loadArrayStk 5 23 1.1 christos 16005 inst streq 7 24 1.1 christos 16005 inst tryCvtToNumeric 8 25 1.1 christos 16005 inst jumpFalse1 12 26 1.1 christos 16005 inst loadScalarStk 13 27 1.1 christos 16005 inst jump1 14 28 1.1 christos 16005 inst pop 18 29 1.1 christos 16005 inst invokeStk1 53 30 1.1 christos 16005 inst add 600000 31 1.1 christos 16005 inst concat1 600000 32 1.1 christos 16005 inst exprStk 600000 33 1.1 christos 16005 inst lt 600007 34 1.1 christos 16005 inst storeScalar1 600016 35 1.1 christos 16005 inst done 600021 36 1.1 christos 16005 inst loadScalar1 1200020 37 1.1 christos 16005 inst push1 4200193 38 1.1 christos 39 1.1 christos It is showing the instructions called by Tcl as the program executes. The 40 1.1 christos larger counts toward the bottom of the display are from the looping construct 41 1.1 christos used in Code/Tcl/func_slow.tcl. 42 1.1 christos 43 1.1 christos Tracing the instructions is quite low-level and slow the target application 44 1.1 christos considerably and would probably be used only as a last resort if you have no 45 1.1 christos other indication of why CPUs are busy. 46 1.1 christos 47