Thread overview
[Issue 401] New: add more std.gc APIs, e.g. std.gc.allocatedMemory();
Oct 05, 2006
d-bugmail
Oct 10, 2006
d-bugmail
Apr 29, 2007
d-bugmail
October 05, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=401

           Summary: add more std.gc APIs, e.g. std.gc.allocatedMemory();
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: someanon@yahoo.com


http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.learn&artnum=4775

> I think the std.gc module should also provide some APIs like
>
> ulong std.gc.allocatedMemory();  // in bytes
> ulong std.gc.availableMemory();
>
> So we can monitor the memory usage within the program itself.

This certainly wouldn't be difficult to implement.

Sean


-- 

October 10, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=401


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement




-- 

April 29, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=401


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Linux                       |All




------- Comment #1 from thomas-dloop@kuehne.cn  2007-04-29 04:01 -------
The data is available via std.gc.getStats

allocatedMemory -> usedsize
availableMemory -> freelistsize


-- 

December 30, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=401


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei@metalanguage.com
         AssignedTo|nobody@puremagic.com        |sean@invisibleduck.org


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------