if d-tor is called, does it means the object is gc-ed?
Unknown W. Brackets
unknown at simplemachines.org
Fri Oct 6 19:29:18 PDT 2006
You can already access this information using, iirc, std.gc.getStats().
Just pull the usedsize and poolsize (used and allocated memory,
>> 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-learn