[gecode-users] Reporting memory usage

Christian Schulte cschulte at kth.se
Tue Oct 28 18:19:53 CET 2008


Hi,

 

Damn that's missing in Gecode. A space takes into account what external memory is allocated by propagators and branchings but not by variables.

 

It will also not be that straightforward (I would have to think a little) as a space does not maintain a list of all variables (in contrast to propagators and branchings).

 

Is it very important? If yes, we could try to come up with something and add it for 3.0. What do you do right now? Do you use the same memory management support for variables that is also used by the complete set variables?

 

Cheers

Christian

 

--

Christian Schulte, www.ict.kth.se/~cschulte/

 

From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf Of Gustavo Gutierrez
Sent: Tuesday, October 28, 2008 5:46 PM
To: gecode at gecode.org
Subject: [gecode-users] Reporting memory usage

 

Hello,

I am working on an implementation of graph variables. In our design, each constraint variable use some data structures allocated outside the gecode heap. Is it possible to report the complete memory used by those variables as part as the search engine statistics?. I can add an extra method to the variable implementation that returns the memory allocated by all its data structures but how can i make the space "aware" of such method?

Thanks in advance. 
-- 
Gustavo Gutierrez

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20081028/3bb6501b/attachment.htm>


More information about the gecode-users mailing list