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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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:
    819
    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,247
    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:
    819
    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,247
    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:
    819
    Thanks, will do so myself next time
     
    alexeyzakharov and MartinTilo like this.
  6. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,247
    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,247
    TJHeuvel-net likes this.