Skip to content
Tcl Source Code History Of Ticket 219241
Login

History Of Ticket 219241

Artifacts Associated With Ticket 219241

  1. Ticket change [776b12fa4d] (rid 89772) by nobody on 2000-10-26 05:04:04:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5048 RFE
      Version: 8.3
      SubmitDate: '2000-04-12'
      LastModified: '2000-08-24'
      Severity: LOW
      Status: Assigned
      Submitter: ericm
      ChangedBy: ericm
      RelatedBugIDs: 5967
      OS: All
      FixedDate: '2000-10-25'
      FixedInVersion: 8.4a2
      ClosedDate: '2000-10-25'
      
      
      It would be great to be able to trace commands the same way we do variables.
      For example, we could do command call counts with this:
      
      trace command myCommand execute myHandler
      proc myHandler {args} {
      ...
      }
      
      This should also allow us to trace creation and deletion of commands:
      
      trace command myCommand create ...
      trace command myCommand delete ...
      
      The second of these in particular is important for megawidget support.  Consider the typical megawidget setup, which creates a frame .f, then renames the frame proc to .f:real, so that it can alias the .f command to the megawidget widget proc.  Now if the user does [rename .f {}], this does not really clean up the megawidget (unlike a true widget, where renaming the widget command deletes the widget).  If we could trace the deletion, however, we could properly clean up in this case.
      
      - eric
      
      
      
      With the patch from Vince Darley (bug: 5967), we can trace rename and delete for commands.  Execution and creation are still pending; of these, creation seems unlikely to happen, as it doesn't really seem useful.
      
      The particular implemention of trace command execution is still undetermined.
      
         Eric Melski                            The Other Tcl Guy
         ericm at ajubasolutions.com            Ajuba Solutions
      
      -- 08/24/2000 ericm
      
      
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "81. Bundled Packages"
    10. title initialized to: "add [trace command] command"
    11. type initialized to: "RFE"
  2. Ticket change [1290a36851] (rid 124055) by dkf on 2000-11-08 18:11:08:

    1. foundin changed to: "obsolete: 8.4a3"
  3. Ticket change [a4862dcb74] (rid 110222) by dkf on 2000-12-03 00:35:33:

    1. icomment:
      Isn't there some kind of command tracing in 8.4 now?
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [8a0724fcef] (rid 127319) by dkf on 2001-01-16 21:40:40:

    1. icomment:
      We've got command renaming and deletion traces.  Creation is a little difficult (without a structure instance to attach the info to, how is record of the trace to be called going to retained?) and there are issues with execution which make me a little unhappy (like what happens if you set an execution trace to call the command being executed.)  You can also trace *procedure* execution by rewriting the procedure body...
      
      You can hack a sort-of replacement for command creation traces by creating another command with the name and then watching for that dummy command to be deleted.  Which isn't perfect (think auto-loading of commands) but probably good enough.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [3b45e89bf9] (rid 112709) by vincentdarley on 2001-01-31 01:42:44:

    1. icomment:
      The issue dkf raises of 'what happens if you set an execution trace to call the command being executed' is easy to solve.  In the same way as:
      
      (i) while a variable is being traced, further traces on that variable are not fired, and 
      (ii) while a command-delete trace is firing further command-delete traces on that command will not fire, and 
      (iii) while a command-rename trace is firing, further command-rename traces on that command will not fire).
      
      The simple solution is that while command-execution traces for a given proc/cmd are firing, further execution traces on the command will not be triggered.  The code for all of this actually already exists and works.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  6. Ticket change [dc820ed6b9] (rid 114493) by dkf on 2001-02-07 23:04:22:

    1. subsystem changed to: "18. Commands M-Z"
  7. Ticket change [fdaaa8f7d4] (rid 108447) by dkf on 2001-02-15 23:30:33:

    1. assignee changed to: "dkf"
  8. Ticket change [66d5c3bee1] (rid 102794) by dkf on 2001-02-19 17:02:53:

    1. priority changed to: "1 Zero"
  9. Ticket change [1e0d17f8a6] (rid 90907) by dgp on 2001-04-04 04:24:33:

    1. subsystem changed to: "18. Commands M-Z"
  10. Ticket change [9027c9d0eb] (rid 120403) by hobbs on 2002-01-17 01:45:04:

    1. closedate changed to: "2002-01-16T18:45:04"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      This is in 8.4.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"