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.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Memory Profiler Connectome view missing

Discussion in 'Profiler Previews' started by JeroenVertigo, May 20, 2021.

  1. JeroenVertigo

    JeroenVertigo

    Joined:
    Dec 1, 2016
    Posts:
    2
    Hi,

    We've been working on pinpointing the causes of some memory leaks we're having, and we've found the Memory Profiler super useful for that!

    However, because of the complexity of our project, it's almost impossible to find all the static roots which causes our objects to not be GC Collected using the table view.

    Now we've stumbled upon this Unity demo from 2018:


    @ time 38:04

    This is the same profiler that showed a connectome, which visualizes all the references to the object in question. This feature would be very very useful, but we couldn't find this feature in our version of the Memory Profiler. We use the latest version from the Package manager; version preview.1 - 0.2.9. Version 0.2.0 does not seem to have it either. Unity version 2019.4.10.

    How can we use this feature? And if, for whatever reason, this feature can't be re-enabled, are there other ways to find the unique static roots of a reference? Thanks.
     
    Last edited: May 20, 2021
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    1,904
    Hello,

    The Connectome was an experimental view that was never shipped and the code for it has since gone stale in version control, so reviving it is not really feasible at the moment. We're aware that the current way of clicking through the Reference Count numbers is less than suboptimal and working towards addressing that, together with a general overhaul of the table views. Having some filtered views for e.g. static roots is something we want to address with this table rework.
     
  3. JeroenVertigo

    JeroenVertigo

    Joined:
    Dec 1, 2016
    Posts:
    2
    Thank you for your reply. I've just found that the Heap Explorer for Unity ( https://github.com/pschraut/UnityHeapExplorer#3.9.0 ) exposes paths to root, which include statics, with the complete path included. For now this is good enough for us, but definitely a feature to be added to the Memory Manager to make it more useful.
     
    MartinTilo likes this.