How can i accurately see the size of a field in the memory profiler?

I’m trying to see the impact on data size for a few different approaches. When i select my script, and browse to the localToWorlds variable it size is reported as 8 bytes. This is perhaps the size of the (reference) variable itself, but what i am really interested in is the entire size of what it points to.

When i for example search for the actual type it (eventually, through a dictionary and array) contains, it shows 6.3MB as total. Is there any way i can see this total-object-tree-size at a glance?

Hi @TJHeuvel-net ! There isn’t currently a solution for what you’re after I’m afraid, but it’s actually something that should be added as part of ongoing work. We’ve added your feedback, thank you!

2 Likes

Thanks a lot!

What information am i supposed to get out of the size column right now? The size of a pointer?

Yep, If it’s a reference type, it’ll be the size of a pointer. If it’s a value type, it should be the actual size of the value :slight_smile:

1 Like