Allocated Size not equal to Managed Size for a byte array

Hi, I encounter a weired issue when using Memory Profiler 1.1.0-exp.1.

In 1.1.0-exp.1, the Allocated Size of a byte array is 4.7MB, but its Managed Size is 5.9MB:

When I used Memory Profiler 1.0.0 to open the same snapshot, the Total Size and the Managed size both are 5.9MB:

Why is the Allocated Size smaller than the Managed Size in 1.1.0-exp.1?

The snapshot was captured on an Android device, using Unity 2020.3.30 and Memory Profiler 0.7.1-preview.1.

Hi @Alan-Liu - Hmm, I’m not certain about this. Would you mind logging a bug, and we’ll investigate? Thank you!

Hi, thanks for the reply. I submitted a bug report: IN-38565.

Update:
Link on issuetracker: https://issuetracker.unity3d.com/issues/memory-profiler-allocated-size-is-smaller-than-managed-size-when-observing-snapshot

1 Like