digitalmars.D.learn - Can I measure how much memory is used in total, grouped by type?
I think I'm using way to much memory for pointers, so I'd like to see how much of my memory usage is taken up by pointers. I've calculated the answer, but I wonder if the compiler/runtime could do it for me, to get a faster and more exact number?
Oct 11 2020
On Sunday, 11 October 2020 at 20:58:22 UTC, drathier wrote:I think I'm using way to much memory for pointers, so I'd like to see how much of my memory usage is taken up by pointers. I've calculated the answer, but I wonder if the compiler/runtime could do it for me, to get a faster and more exact number?More specifically, can I do this for a single value? E.g. how much memory is used by pointer types in this specific variable?
Oct 12 2020