Version 1 of info cmdcount

Updated 2003-09-09 03:57:19

info cmdcount

Returns a count of the total number of commands that have been invoked in this interpreter.


Note that since the bytecode compiler arrived in Tcl 8.0, the machinery that counts command invocations has been effectively disconnected from the operation of many Tcl commands. As development continues, more and more command evaluation doesn't count in the eyes of [info cmdcount].

This command is best treated in modern Tcl programs as a curious historical relic. Not to be relied on for correct operation of scripts.


See also:


Category Command - Tcl syntax help