Profiling is a way of determining metrics of usage within some part of one's application. ---- Documentation for the [tcllib] profiling package can be found at http://tcllib.sourceforge.net/doc/profiler.html ---- [etprof] is a little profiler in pure Tcl. ---- Anyone have examples of how best to make use of this? What other profiling tips do you have? TclX has some profiling tools in it doesn't it? What else? From http://www.purl.org/NET/Tcl-FAQ/part4.html , the following are a few other profiling relating tools What: prox Where: ftp://ftp.procplace.com/pub/tcl/sorted/ Description: Prox is a Tcl script that aids in analysis of the Tclx profile data. It reads the TclX's profile array and allows interactive exploration of the profile data. Updated: 04/1999 Contact: mailto:chris@pinebush.com (Christopher Nelson) What: Sage Where: http://www.geocities.com/SiliconValley/Ridge/2549/sage/ Description: A Tcl/Tk runtime code analyzer profiling tool for Tcl/Tk applications. Requires Tcl 8.0, and was tested on Linux i386 and SunOS/Solaris. Currently at version 1.1 . Updated: 11/2001 Contact: mailto:johnstump@iname.com (John Stump) What: tprof Where: http://members.ping.at/risc/tprof.html ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.base.tar.gz ??? ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.pub.linux.tar.gz ??? ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.pub.hpux.tar.gz ??? ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.pub.irix.tar.gz ??? ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.english.tar.gz ??? ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.german.tar.gz ??? ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.demo.tar.gz ??? ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.info.tar.gz ??? ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tprof-2.2.pub.tar.gz ??? ftp://sunsite.unc.edu/pub/Linux/tprof-2.2.all.linux.tar.gz Description: A Tcl script profiler, allowing creation of profile information datasets and supports analysis thru a graphical front end. Comes complete with English and German language adapation and help pages. Available only for Linux, HP/UX and Irix. Both public domain and commercial versions available - see documentation or home page for details. Updated: 06/1997 Contact: mailto:risc@finwds01.tu-graz.ac.at (Richard Schwaninger) http://members.ping.at/risc/ From http://www.purl.org/NET/Tcl-FAQ/part5.html , the following are some of the extensions which providing profiling functionality. What: Extended Tcl (tclX) Where: http://sourceforge.net/projects/tclx/ http://www.neosoft.com/tclx/ ftp://ftp.procplace.com/pub/tcl/TclX/tclXwin804.zip ??? Description: An essential package of extensions for Tcl/Tk. This package creates interpreters known as tcl and wishx. The extension is also known as tclX and tkX. Adds advanced code loading facility, new programming constructs, debugging and profiling facilities, unix access commands, file i/o facilities including awk-like scanning for strings, extended list and a new key list capability, extended character and string manipulation commands, and time and date manipulation commands. A Win32 binary distribution is also available. Currently, version 8.3 is available . Updated: 03/2001 Contact: mailto:tcl-project@NeoSoft.com What: Profile Tcl code Where: From the contact Description: Tcl code snippet used to provide Tcl code. It works by redefining proc. Updated: 07/1997 Contact: mailto:cimarron@montage.com (Cimarron Taylor) (???) What: Profiler Where: http://www.cs.colorado.edu/%7Ejcook/TclTk/Profile.html Description: Tcl 7.6 source code extension to add profiling to one's programs. Package instruments each procedure, keeping track of execution time and number of invocations. Read the instructions carefully to see restrictions on coding style. Minimal support for Tk apps since much of the time in these is in a wait state. Code is experimental but seems to work. Updated: 10/1998 Contact: mailto:jcook@cs.nmsu.edu (Jon Cook) What: Tcl Extensions by Michael Schwart Where: http://www.du.edu/%7Emschwart/tcl-tk.htm Description: This page contains pointers to a number of Tcl extensions, including a Tk that uses Curses, GD (Image file rendering based on the Tom Boutell's gd library - supports PNG and GIF) - version 0.1.0.4, GDI (Graphics device drawing similar to Tk canvas, but for Windows) - version 0.9.8.3, HDC (Name/address manipulations) - version 0.2.0.1, WMF (Windows metafile context for copying to clipboard) - version 0.1.0.2, Tkmsmail (MAPI and CMD mail interfaces, allowing Windows programs to send mail) - version 1.0.1.1 (now available from the tcl core's CVS repository and is TEA compliant) , Print (printer contexts, providing invocation of common printer dialogs and exposes the device context for supporting interaction with other platform specific drawing primitives - Windows and Unix) - version 0.9.5.2, Profile (.INI file manipulations - Windows and Unix) - version 0.6.0.2, Signal (simple signal processing - Unix) - version 1.4, Winexec (Windows exec command which can properly launch detached 16 bit and DOS apps as well as Win32 apps) - version 0.6.0.1, a .zip bundle of Tcl 8.2 DLLs with NT stubs. Updated: 06/1999 Contact: mailto:mschwart@nyx.net What: tclprof Where: ftp://ftp.procplace.com/pub/tcl/sorted/packages-7.6/devel/tclprof.shar.gz Description: Tcl performance profiling facility. Works with Tcl 6.4. Comes as a part of tclX, but does not require it. Updated: 10/1998 Contact: mailto:markd@grizzly.com (Mark Diekhans) ---- [Category Package], subset [Tcllib]