Profiling a release build?

Hello,

Not necessarily an Android question (although I am developing on Android) but can we profile a release build?

It makes much more sense to see where time is spent the most in an optimized build rather than in a development build.

Thanks for help

This video by Scott Steffes explains it really well:

The video linked in the answer above has no information on whether you can profile a release build.

The actual answer is ‘no’. You can find the following line over here in the Unity docs

“You can only profile your application as a Development Build.”

1 Like

Just FYI: This relates to Deep Profiling development builds using Mono Scriping backend (as opposed to IL2CPP) on versions from 2017.4-2019.2.
In 2019.3 you can make any kind of build with deep profiling support and then toggle deep profiling on on the fly.

Regarding profiling Release builds. We’re very aware of the lack of profiling support for release builds. We want to eventually support this but no ETA as to when just yet (i.e. not planned for 2020.x). In the mean time you’ll have to use the native platform profilers to get measurements from release builds.

2 Likes