Search Unity

Detecting memory leaks using profiler with Unity 2018.3

Discussion in 'Android' started by nsmith1024, Jan 23, 2020.

  1. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    Hello,

    I have a Unity app running on android, where if i use it for a little while (like 15 minutes) it runs out of memory and crashes. Im having a hard time finding out out where the memory leak is that is causing the crash.

    I saw on YouTube that Unity 2019 has a "memory diff" feature where you run, take a snap shot, run again, then take another snap shot, then use the "diff feature" to compare the two snapshots to see where the extra memory allocation took place, or where it wasnt released etc, this would help to more easily find the memory leak.

    However Im using Unity 2018.3 which dont seem to have that "memory diff feature". Does anybody know a work around, or maybe there is some kind of package i can use for that? Or do you know how to find a memory leak with 2018.3?

    Thanks
     
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,451