Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Profiler Memory Leak

Discussion in 'Editor & General Support' started by Phil™, Jun 13, 2012.

  1. Phil™

    Phil™

    Joined:
    Jan 2, 2011
    Posts:
    73
    I'm trying to use the profiler to debug memory usage on my project, but it's hard. As soon as I switch the profiler on, memory starts increasing (according to the profiler at 1MB per sec, roughly) which makes it appear like there's a memory leak. This seemed unlikely as I can run the app for hours on a 1st gen ipad without ever running into memory problems. So I tried repeating this with an empty scene and the same thing happens, albeit at a slightly slower rate. I've searched the forums and found a few mentions of this problem dating back a year or so, but no word on solutions or workarounds.

    I can only assume that the profiler is allocating memory to log everything which is happening during profiling? Is there some way to prevent or mitigate this? Or is this just a longstanding bug that needs fixing? It's very hard to debug memory use when the profiler is leaking memory itself.