Skip to content
Tcl Source Code History Of Ticket 614282ffffffffff
Login

History Of Ticket 614282ffffffffff

Artifacts Associated With Ticket 614282ffffffffff

  1. Ticket change [7091ead2c6] (rid 100508) by nobody on 2002-09-25 09:18:43:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      trace enterstep does not only fire on every command in
      a procedure but also in all called procedures if they
      have also enterstep set.
      
      Consider
      
      proc x {} { y }
      proc y {} { z }
      proc z {}  { stuff }
      
      a tace enterstep on x,y and z fires on the commands in
      stuff three times, but only if there is really a
      enterstep on y and z. Only an enterstep on x does not
      fire on y and z body commands.
      
      
    4. foundin initialized to: "obsolete: 8.4.0"
    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: "45. Parsing and Eval"
    10. title initialized to: "trace enterstep fires for all levels"
    11. type initialized to: "Bug"
  2. Ticket change [6182c7d99f] (rid 92252) by dkf on 2003-06-26 17:30:00:

    1. subsystem changed to: "46. Traces"
  3. Ticket change [c77e14d93f] (rid 121941) by dgp on 2003-06-26 22:46:55:

    1. assignee changed to: "dgp"
  4. Ticket change [f2adb59fa7] (rid 109596) by dgp on 2003-07-16 19:58:48:

    1. priority changed to: "9 Immediate"
  5. Ticket change [196a33420d] (rid 122800) by dgp on 2003-07-17 04:00:49:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      To clarify the report:
      
      % proc report args {puts [info level 0]}
      % proc x {} y
      % proc y {} z
      % proc z {} stuff
      % proc stuff {} {puts stuff}
      % foreach cmd {x y z} {
          trace add execution $cmd enterstep {report}
      }
      % x
      report y enterstep
      report z enterstep
      report z enterstep
      report stuff enterstep
      report stuff enterstep
      report stuff enterstep
      report {puts stuff} enterstep
      report {puts stuff} enterstep
      report {puts stuff} enterstep
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [b267fbcc4f] (rid 98326) by dgp on 2003-07-17 04:05:08:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I need a ruling from a TIP 62 Author
      on whether or not this is the intended
      behvaior.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "5 Medium"
    6. username: "dgp"
  7. Ticket change [2d8d42f98d] (rid 119084) by vincentdarley on 2003-07-17 04:57:28:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      I believe 'enterstep' should fire on *all* commands inside 'x', 
      at all nested levels, as this indicates:
      
      (bin) 2 % proc report args {puts [info level 0]}
      (bin) 3 % proc x {} y
      (bin) 4 % proc y {} z
      (bin) 5 % proc z {} stuff
      (bin) 6 % proc stuff {} { puts stuff }
      (bin) 7 % trace add execution x enterstep report
      (bin) 8 % x
      report y enterstep
      report z enterstep
      report stuff enterstep
      report {puts stuff} enterstep
      stuff
      (bin) 9 % 
      
      When you now add multiple 'enterstep' traces, things get 
      more complicated, but the behaviour you show looks 
      reasonable.
      
      This was the design of tip62, so that it allowed, effectively, 
      arbitrary tracing of execution for profiling or debugging 
      purposes inside any given procedure.
      
      It seems perhaps you have a different design in mind?
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  8. Ticket change [0cde21d998] (rid 114252) by dgp on 2003-07-17 10:28:19:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      It seems the submitter expected
      something different, and I the 
      docs weren't clear to me.  Now that
      I know this is the intended behavior,
      I'll look into improving the docs.
      Suggestions accepted.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. title changed to: "improve docs for trace enterstep behavior"
    7. username: "dgp"
  9. Ticket change [92e7afc9e7] (rid 105725) by dgp on 2003-07-18 12:58:44:

    1. priority changed to: "8"
  10. Ticket change [7b26215421] (rid 90472) by dgp on 2003-10-08 23:54:20:

    1. priority changed to: "5 Medium"
  11. Ticket change [b7b5f126b5] (rid 128845) by dgp on 2007-10-31 23:41:11:

    1. priority changed to: "9 Immediate"
  12. Ticket change [86e1e77d0e] (rid 131589) by dkf on 2007-12-13 18:21:12:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2007-12-13T11:21:12"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      Clarified (including adding example)
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dkf"