Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Allocated Size not equal to Managed Size for a byte array

Discussion in 'Profiler Previews' started by Alan-Liu, Apr 14, 2023.

  1. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    397
    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:
    upload_2023-4-14_15-38-10.png

    When I used Memory Profiler 1.0.0 to open the same snapshot, the Total Size and the Managed size both are 5.9MB:
    upload_2023-4-14_15-39-54.png

    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.
     
  2. GrahamHuws

    GrahamHuws

    Unity Technologies

    Joined:
    Mar 14, 2022
    Posts:
    20
    Hi @Alan-Liu - Hmm, I'm not certain about this. Would you mind logging a bug, and we'll investigate? Thank you!
     
  3. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    397
    Last edited: Sep 4, 2023
    GrahamHuws likes this.