Prepare an Android* Application for Analysis
- Compile your code with release level settings (for example, do not use the/O0setting on GCC*).
- Do not setAPP_OPTIMtodebugin yourApplication.mkas this setting disables optimization (it uses/O0) when the compiler builds your binary.
- To run performance analysis (Hotspots) on non-rooted devices, make sure to compile your code setting thedebuggableattribute totrueinAndroidManifest.xml.If your application is debuggable (android:debuggable="true"), the default setting will bedebuginstead ofrelease. Make sure to override this by settingAPP_OPTIMtorelease.