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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 5 13:22:20 PDT 2006


           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 at digitalmars.com
        ReportedBy: someanon at yahoo.com


> 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.



More information about the Digitalmars-d-bugs mailing list