Overview
| Artifact ID: | 6d5db77ec393fdb19b5c17331d9ea0f0cdb38afe |
|---|---|
| Ticket: | 1190441fffffffffffffffffffffffffffffffff
Provide a way to completely disable tclsh history support. |
| User & Date: | dossy on 2005-12-01 03:24:29 |
Changes
- icomment:
Logged In: YES user_id=21885 I'm not talking about a memory leak -- yes, we might have those, too -- I'm talking about a "resource abuse leak" -- where one thread running some Tcl script is using/holding on to a sizable amount of memory and not cleaning up after itself. Currently, there's very little that I know of for debugging this stuff. I can use the seemingly unsupported Tcl_GetMemoryInfo() but that's not fine-grained enough to solve my problem. So, I log each thread's creation and every time a thread allocs/frees memory, then do point-in-time "accounting" figuring out net memory-in-use per thread and try to graph it over time to see which thread is using memory and tie it back to what Tcl script it might have been executing at the time. I'm thinking about hijacking Tcl_NewObj() and friends to track Tcl_Obj creation/destruction, but that's going to be a lot of work (but probably *exactly* what I need, here).
- login: "dossy"
- mimetype: "text/plain"
- username: "dossy"