Prev: How to call a method inside another method?
Next: TclOO: Is it possible that destructor is called on an object, but constructor is not?
From: pmarin on 24 Jan 2010 09:36 I am trying to implement a näive mark-and-sweep for Muddy Scheme, but I don't know when I need to do the sweep. Is there any command for to known how many memory is used in a Tcl program?
From: George Petasis on 24 Jan 2010 10:16 στις 24/1/2010 16:36, O/H pmarin έγραψε: > I am trying to implement a näive mark-and-sweep for Muddy Scheme, but > I don't know when I need to do the sweep. Is there any command for to > known how many memory is used in a Tcl program? Under windows, I usually use twapi: package require twapi set bytes [lindex [twapi::get_process_info [pid] -workingset] 1] George
From: Uwe Klein on 24 Jan 2010 10:47
George Petasis wrote: > στις 24/1/2010 16:36, O/H pmarin έγραψε: > >> I am trying to implement a näive mark-and-sweep for Muddy Scheme, but >> I don't know when I need to do the sweep. Is there any command for to >> known how many memory is used in a Tcl program? > > > Under windows, I usually use twapi: > > package require twapi > set bytes [lindex [twapi::get_process_info [pid] -workingset] 1] > > George > The wiki provides some help too: http://wiki.tcl.tk/_//search?S=memory uwe |