1N/A * sh_stat.d - Bourne shell operation stats using DTrace. 1N/A * Written for the sh DTrace provider. 1N/A * $Id: sh_stat.d 52 2007-09-24 04:28:01Z brendan $ 1N/A * This traces activity from all sh processes on the system that are running 1N/A * with sh provider support. 1N/A * USAGE: sh_stat.d [interval [count]] 1N/A * EXEC/s Bourne shells executed per second, including 1N/A * those without sh provider support 1N/A * FUNC/s Functions called, per second 1N/A * BLTIN/s Builtins called, per second 1N/A * SUB-SH/s Sub-shells called, per second 1N/A * CMD/s External commands called, 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 sh 1N/A * scripts may be running without the DTrace sh provider. See Shell/Readme. 1N/A * Filename and function names are printed if available. 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 %8s %8s %8s %8s %8s\n",
"TIME",
"EXEC/s",
"FUNCS/s",
1N/A "BLTINS/s",
"SUB-SH/s",
"CMD/s");