1N/A * tcl_stat.d - Tcl operation stats using DTrace. 1N/A * Written for the Tcl DTrace provider. 1N/A * $Id: tcl_stat.d 63 2007-10-04 04:34:38Z brendan $ 1N/A * This traces activity from all Tcl processes on the system with DTrace 1N/A * provider support (tcl8.4.16). 1N/A * USAGE: tcl_stat.d [interval [count]] 1N/A * EXEC/s Tcl programs executed per second, including 1N/A * those without Tcl provider support 1N/A * PROC/s Procedures called, per second 1N/A * CMD/s Commands created, per second 1N/A * OBJNEW/s Objects created, per second 1N/A * OBJFRE/s Objects freed, per second 1N/A * OP/s Bytecode operations, per second 1N/A * The numbers are counts for the interval specified. The default interval 1N/A * If you see a count in "EXECS" but not in the other columns, then you 1N/A * may have older Tcl software that does not have the integrated DTrace 1N/A * provider (or newer software where the provider has changed). 1N/A * COPYRIGHT: Copyright (c) 2007 Brendan Gregg. 1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License, Version 1.0 only 1N/A * (the "License"). You may not use this file except in compliance 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * 09-Sep-2007 Brendan Gregg Created this. 1N/A printf(
"%-20s %6s %8s %8s %8s %8s %8s\n",
"TIME",
"EXEC/s",
1N/A "PROC/s",
"CMD/s",
"OBJNEW/s",
"OBJFRE/s",
"OP/s");