www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 401] New: add more std.gc APIs, e.g. std.gc.allocatedMemory();

reply d-bugmail puremagic.com writes:
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 --
Oct 05 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=401


bugzilla digitalmars.com changed:

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




-- 
Oct 10 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
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


-- 
Apr 29 2007
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Dec 30 2010