Name

profile

profile [-commands] [-eval] on

Start collection of data for performance profiling of procedures. With the -commands option, also profiles commands within a procedure. With the -eval option, uses the procedure call stack rather than the procedure scope stack when reporting usage.

profile off arrayVar

Turn off profiling and store the results in variable arrayVar for later analysis by the profrep command.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.