Settings in Unity Project

Profiling in Unity Editor

https://docs.unity3d.com/Manual/profiler-profiling-applications.html

Profiling in Android Studio: