Coverage map in Tcl - how many times has each proc been called?
Archive - Originally posted on "The Horse's Mouth" - 2017-09-28 09:06:35 - Graham EllisJust finished a lovely course in Dublin ... Tcl Programming - or rather a tailored version of it.
One of the requirements for this customer is a coverage map - in other words, he requires the ability to run his code and find which procs have been used and how many times.
Method - rename the existing proc to something else, and supply a new proc called proc which calls the now-hidden old code
Complete example [here]