I was wondering what methods the Unity community is using to profile memory usages of a Unity app on iOS devices. As we all are aware of from iPhone 3gs - iPhone4 they have different amount of memory available to the app, and of course same goes from ipad 1 - 3.
Im trying to find best practices for profiling with either a combo of Unity Profiler, and or Xcode Instruments, Ideally we would like to get a grip on:
How much total memory is in use
How much goes to textures
How much goes to animations
How much goes to audio
How much a certain prefab is using (helps us figure out where issues are)
The application binary itself (thats without stripping or with an enabled dev build in the 17-20mb range)
used texture memory which the instruments will pick up as they look at more than one process while unity only profiles ‘real memory’ not the virtual memory mapped VRAM
I wondered that. I couldn’t see which of the profilers would include the binary though, they all claim to be heaps. For the record I think the internal profiler was equivalent to instruments, but the unity profiler was optimistic. It showed something like Total 40mb, Textures 39.1Mb! Making me think total is not including vram.
That fits. Although I thought I had to switch to VM profiling in instruments to get a sense of the Open GL mapped memory…
Non development builds, gets me 78Mb and 190Mb in the task manager for the same two scenarios. Meaning the development build isn’t adding much. Something fishy is going on…