Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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:
    359
    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:
    359
    Last edited: Sep 4, 2023
    GrahamHuws likes this.