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.

Feature Request Memory Profiler display of Dictionaries

Discussion in 'Profiler Previews' started by TJHeuvel-net, Jul 21, 2022.

  1. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    838
    When working with the Memory Profiler the way that a Dictionary<K,V> is shown in the Managed Fields is not very useful:

    upload_2022-7-21_17-37-37.png
    Now our type is moderately complex, but would there be any way to improve this view? Or perhaps allow us to, somehow, add our own drawers here?
     
    alexeyzakharov likes this.
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,517
    Thanks for pointing this out, we should totally show the details of struct instances in the Managed Field as well, not just object instances. That is admittedly a bit of an oversight.
     
    TJHeuvel-net likes this.
  3. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    838
    Thanks!

    Do you see any way that we could customise how these variables are displayed? Perhaps something along these lines: https://learn.microsoft.com/en-us/d...ebugging-with-the-debugger-display-attributes
     
  4. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,517
    Not as a concrete improvement on our planning horizon, so to speak. I did log it as a feature request on your behalf via the internal equivalent of our feedback collection that is available via our roadmap page (Profiling tab). That way we'll be sure to process and prioritize it as part of our planning flow :)
     
    TJHeuvel-net likes this.
  5. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    838
    Thanks, will do so myself next time
     
    alexeyzakharov and MartinTilo like this.
  6. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,517
    It can sometimes help to discuss and clarify it. That can, like in this situation, show that bugs or other issues prevent the underlying problem to be solved, or generally show the underlying problem to be solved by the feature request more clearly. We are most interested in what specific problem one is interested in solving, as there's often as many different feature requests as there are requesters for something where the underlying issue is the same one.

    So there's definitely a space here in the forums to bring these up, but ultimately, we'll then need to track the feedback through our system to be able to connect such similar requests and evaluate the priorities.
     
    alexeyzakharov likes this.
  7. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,517
    TJHeuvel-net likes this.