Artifacts Associated With Ticket 451858ffff
Ticket change [68f4a19df2] (rid 103157) by msofer on 2001-08-16 23:37:05:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Trace compilation is broken since at least tcl8.3.3 - it doesn't print the bytecodes details. Witness the following [mig@mini tcl_NOP]$ tclsh % info patch 8.3.3 % set tcl_traceCompile 2 2 % Compiling: "history add {\n}" % versus [mig@mini tcl_NOP]$ tclsh8.0 % info patch 8.0.5 % set tcl_traceCompile 2 2 % Compiling: history add { ... ByteCode 0x8059dc8, ref ct 1, epoch 0, interp 0x8049a10(epoch 0) Source "history add {\n}" Cmds 1, chars 15, inst 9, objs 3, aux 0, stk depth 3, code/src 14.87 Code 223 = 104(header)+9(inst)+83(objs)+0(exc)+0(aux)+4(cmd map) Commands 1: 1: pc 0-7, source 0-14 Command 1: "history add {\n}" (0) push1 0 # "history" (2) push1 1 # "add" (4) push1 2 # "\n" (6) invokeStk1 3 (8) done ByteCode 0x805d2d0, ref ct 1, epoch 0, interp 0x8049a10(epoch 0) Source "\n" Cmds 0, chars 1, inst 3, objs 1, aux 0, stk depth 1, code/src 144.00 Code 144 = 104(header)+3(inst)+24(objs)+0(exc)+0(aux)+0(cmd map) (0) push1 0 # "" (2) done % - foundin initialized to: "None"
- priority initialized to: "7 High"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "broken compilation trace"
- type initialized to: "Bug"
Ticket change [e711351058] (rid 104392) by msofer on 2001-08-17 23:18:47:
- assignee changed to: "stanton"
- icomment:
Logged In: YES user_id=148712 The functionality has been disabled in the standard build since tcl8.1 (CVS version 1.14 of tclCompile.c) - it is only available if TCL_COMPILE_DEBUG is defined at compile time. The basic compile tracing functionality [set tcl_traceCompile 1] is available in the standard build. Both are documented in the man pages (tclvars). So, this may be the intended behaviour, it would just be a docs bug ... Scott: you committed the change way back then. Do you remember the rationale for this behaviour? Especially, why keep only part of the functionality. You can reassign this ticket to me - assigning it to you as RFC.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [e01c375c69] (rid 115138) by stanton on 2001-08-17 23:37:04:
- assignee changed to: "schroedter"
- icomment:
Logged In: YES user_id=90875 If I recall correctly, the reason we disabled the feature in a default compile was to improve performance. Compile tracing does add some overhead even when the trace level is turned down. It was never intended to go out enabled by default, but we forgot to turn it off in the 8.0 release. One possible rationale for leaving the level 1 feature on is that it is a relatively inexpensive way of verifying whether parts of a script are being compiled. Not sure if it's all that useful in practice, but I can see someone making that argument. Now, I don't remember if that was our reason for leaving it on, or if it was simply an oversight. I'd be content to leave it alone or disable it. I don't think it's a big deal either way. Obviously the docs should be updated to reflect whatever decision is made.
- login: "stanton"
- mimetype: "text/plain"
- username: "stanton"
Ticket change [c030696d64] (rid 102363) by msofer on 2001-08-19 09:10:21:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Apparently misassigned by mistake; reassigning the ticket to myself.
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "2"
- username: "msofer"
Ticket change [8de8a0b9e0] (rid 128024) by hobbs on 2001-08-21 06:38:10:
- icomment:
Logged In: YES user_id=72656 the traces should be left out - eliminated as much as possible for the standard compile. A #define should reenable them, but that should only be considered a debugging mode. We shouldn't slow the core down one iota for more users who won't care about compilation tracing.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Add attachment "451858.patch" [0f37dc2f18] (rid 94748) by msofer on 2001-09-17 18:55:08.
Ticket change [a5fe458a8c] (rid 98524) by msofer on 2001-09-17 18:55:08:
- closedate changed to: "2001-09-17T11:55:08"
- closer changed to: "msofer"
- icomment:
File Added - 10875: 451858.patch Logged In: YES user_id=148712 The patch disables all compile and execution tracing functionality in standard builds; TCL_COMPILE_DEBUG is now necessary to enable it.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"