1 .TH sh_wasted.d 1m "$Date:: 2007-10-03 #$" "USER COMMANDS"
3 sh_wasted.d - measure Bourne shell elapsed times for "wasted" commands.
8 This script measures "wasted" commands - those which are called externally
9 but are in fact builtins to the shell. Ever seen a script which calls
10 /usr/bin/echo needlessly? This script measures that cost.
12 Filename and call names are printed if available.
16 Evolving - uses the DTrace Shell provider, which may change
17 as additional features are introduced. Check Shell/Readme
18 to see what version these scripts are based on.
28 Filename of the shell or shellscript
34 Total elapsed time for calls (us)
39 See the DTraceToolkit for further documentation under the
40 Examples, Notes and Docs directories. The example files may be
41 especially useful as they aim to demonstrate how to interpret
44 sh_wasted.d will run until Ctrl-C is hit.