The data is available via std.gc.getStats
allocatedMemory -> usedsize
availableMemory -> freelistsize
Comment #2 by andrej.mitrovich — 2014-04-24T15:02:31Z
Is this still being planned to be added? Could it become cumbersome for some GC implementations to expose such an API (e.g. if it's not a O(1) operation but something way more expensive)? If so then maybe it's best not to try exposing such operations.
Comment #3 by andrei — 2014-04-24T17:29:58Z
This looks more like a task than an enhancecement request. @Sean okay to remove it for now?