add a function to get the total size of memory managed by the GC