Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Profiler not counting GC allocations

Discussion in '2018.1 Beta' started by goncalo09, Jan 17, 2018.

  1. goncalo09

    goncalo09

    Joined:
    Oct 26, 2017
    Posts:
    10
    When profiling in the Unity Editor in play mode "GC Alloc" always shows 0 B even though I am purposely allocating every frame.
    upload_2018-1-17_15-18-11.png
    upload_2018-1-17_15-19-15.png

    Using .NET 4.6 runtime. Am I missing any configuration?
     
    SugoiDev likes this.
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi goncalo09,
    Could you please submit a bug report with a minimal reproduction project and reply in here with the case #?
    You can find more information on how to do that here.
     
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    We actually have a PR in flight that addresses some deep profiling issues under .Net 4.6 and might cover the case you are experiencing. But to make sure it does, a bug report with a reproducible would still be helpful.
     
  4. goncalo09

    goncalo09

    Joined:
    Oct 26, 2017
    Posts:
    10
    Case 988906
     
    LeonhardP likes this.
  5. SugoiDev

    SugoiDev

    Joined:
    Mar 27, 2013
    Posts:
    395
    Same happening here, with Net 4.6 too.
     
  6. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    This issue has been fixed internally. The fix should become available in one of the next updates.
     
    SugoiDev likes this.
  7. SugoiDev

    SugoiDev

    Joined:
    Mar 27, 2013
    Posts:
    395
    Issue is still present in beta 5.