October 11, 2020 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? |
October 12, 2020 Re: Can I measure how much memory is used in total, grouped by type? | ||||
---|---|---|---|---|
| ||||
Posted in reply to drathier | 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?
|
Copyright © 1999-2021 by the D Language Foundation