Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    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.

Official Memory Profiler 1.1.0-pre.1 Released

Discussion in 'Profiler Previews' started by antonk-unity, May 15, 2023.

  1. antonk-unity

    antonk-unity

    Unity Technologies

    Joined:
    Oct 4, 2016
    Posts:
    50
    Good day everyone,

    We have released version 1.1.0-pre.1 of the Memory Profiler package. It contains bug fixes and performance improvements for issues reported since the 1.1.0-exp.1 release. See below for details. For all changes since the 1.0 release, please check 1.1.0-exp.1 forum post.

    Changes
    Added
    • Added metadata support for AudioClip and Shader objects.
    • Added thumbnailing for screenshots to improve startup speed.

    Fixed
    • Fixed an empty MonoBehaviour entry displayed in the Unity Objects table when 'Show Potential Duplicates' was checked and there are no potential duplicate MonoBehaviours.
    • Fixed Summary view tracking of Graphics memory on Switch.
    • Fixed the Summary breakdown bar's total label overlapping with its legend when using small window sizes.
    • Fixed not showing negative values when comparing snapshots in Summary View.
    • Fixed an ArgumentNullException for a parameter named e in MemoryBreakdownLegendViewController.GatherColumnReferences.
    • Fixed Selection Details foldouts so that they retain their expansion status for the duration of an Editor session and do not change on every selection change.
    • Fixed screenshots remained after deleting snapshots.
    • Fixed situations where the highlighted element in tables did not reflect the displayed selection but could not be clicked to show its details in the selection, particularly when the selected row item would change due to search filtering the table, switching back to a previously visited view.
    • Fixed leaks of native UnsafeUtility.Malloc(Persistent) allocations that occurred when the Editor recompiled code while a snapshot was open.
    • Fixed leaks of Persistent NativeArray allocations via the Snapshot FileReader occurring with every (attempted) opening of a snapshot.
    • Fixed Unity Objects View was not showing graphics resources for snapshots made with Unity 2022.1 and older.
    • Added a tooltip for graphics items in All of Memory Table in "Resident" and "Allocated and Resident" views for a better explanation of why some elements are grayed out
    • Removed not-actionable console warning for iOS captures about reported overlapping Native Objects allocations
    • Fixed error if you try to open a snapshot while capturing
    • Fixed error reported if you try to change table view mode with dropdown while the view is still loading
    • Fixed snapshot renaming issues in situations when a warning or error dialog is shown
    Changed
    • We marked IComparableItemData deprecated as it was accidentally exposed as public.
     
    MartinTilo and alexeyzakharov like this.
  2. unity_HFdq2nn3zsbEWA

    unity_HFdq2nn3zsbEWA

    Joined:
    Jul 21, 2021
    Posts:
    4
    1.1.0-pre.1 does not work with WebGL. It does not show Unity objects.1.0.0 on WebGL does not have this issue.
     
  3. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,517
    Hey,
    To clarify: the same snapshot, loaded into version 1.0.0 of the package, shows these objects, but loaded into 1.1.0-pre.1 does not show these?
    Could you please use your Editor's menu option
    Help > Report A Bug
    to file a bug report for this? Ideally with the project attached, though if that's not possible, at least with such a snapshot attached. If there is no project attached, please also make sure to post the Issue ID (just the "IN-XXXX" number, not the link) into this thread, so that I can look at it and confirm if no project is needed? (otherwise our QA might reject it for lacking a repro project before it reaches our team).
     
  4. unity_HFdq2nn3zsbEWA

    unity_HFdq2nn3zsbEWA

    Joined:
    Jul 21, 2021
    Posts:
    4
    It does not matter which version captured the snapshot. They open fine with 1.0.0, but fail to open correctly with a pre-release version. Attached screenshot.
    upload_2023-7-27_2-19-44.png

    Reported a bug. https://unity3d.atlassian.net/servicedesk/customer/portal/2/IN-49247
     
    MartinTilo likes this.
  5. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,517
    Thank you for the bug report!
    A fix for this issue will ship with the next version of the package.
     
  6. rr_7827

    rr_7827

    Joined:
    Feb 23, 2017
    Posts:
    4
    I apologize if this has been addressed elsewhere, I'm trying out the 1.1.0-pre.1 package for the first time today:

    I'm seeing the error message "Detailed breakdown of resident allocations is not available. This snapshot was taken with a Unity version 2021.2 or older." when hovering over the grayed-out combobox at the top of the Unity Objects and All Of Memory tabs. I'm seeing this error in the Unity 2023.1.5 editor for captures taken from a iOS device using either the 2023.1.5 or 2021.3.17 editor. Is this a supported configuration, or am I missing a requirement?

    Thanks!
     
  7. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,517
    Yes, that's a mistake that was already fixed for the next update. It should say 2022.2/3 or older or rather what it was changed to now, as a positive statement, that it is available from Unity versions 2023.1 or newer, 2023.1.0a10+ to be precise.
     
    rr_7827 likes this.