Artifacts Associated With Ticket 614282ffffffffff
Ticket change [7091ead2c6] (rid 100508) by nobody on 2002-09-25 09:18:43:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "obsolete: 8.4.0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "trace enterstep fires for all levels"
- type initialized to: "Bug"
Ticket change [6182c7d99f] (rid 92252) by dkf on 2003-06-26 17:30:00:
- subsystem changed to: "46. Traces"
Ticket change [c77e14d93f] (rid 121941) by dgp on 2003-06-26 22:46:55:
- assignee changed to: "dgp"
Ticket change [f2adb59fa7] (rid 109596) by dgp on 2003-07-16 19:58:48:
- priority changed to: "9 Immediate"
Ticket change [196a33420d] (rid 122800) by dgp on 2003-07-17 04:00:49:
- 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 - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b267fbcc4f] (rid 98326) by dgp on 2003-07-17 04:05:08:
- assignee changed to: "vincentdarley"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- username: "dgp"
Ticket change [2d8d42f98d] (rid 119084) by vincentdarley on 2003-07-17 04:57:28:
- 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? - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [0cde21d998] (rid 114252) by dgp on 2003-07-17 10:28:19:
- assignee changed to: "dgp"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- title changed to: "improve docs for trace enterstep behavior"
- username: "dgp"
Ticket change [92e7afc9e7] (rid 105725) by dgp on 2003-07-18 12:58:44:
- priority changed to: "8"
Ticket change [7b26215421] (rid 90472) by dgp on 2003-10-08 23:54:20:
- priority changed to: "5 Medium"
Ticket change [b7b5f126b5] (rid 128845) by dgp on 2007-10-31 23:41:11:
- priority changed to: "9 Immediate"
Ticket change [86e1e77d0e] (rid 131589) by dkf on 2007-12-13 18:21:12:
- assignee changed to: "dkf"
- closedate changed to: "2007-12-13T11:21:12"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Originator: NO Clarified (including adding example)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"