well. there are several options.
a) using Tcl traces (somewhat similar to what you are doing,
see also [1]
b) when using nsf, one can profile oo methods and procs.
nsf defines a value-added version of "proc" called "nsf::proc",
that allows e.g. optional type checking of arguments, check
Hi,
We've been looking at profiling the execution times of various
application-level procs running NaviServer.
We want the ability to turn on profiling for selected commands, so we
started off using Tcl traces in a manner similar to:
http://nikit.tcl.tk/page/Profiling+with+execution+traces
So we