Noyal Jose
Noyal Jose

Reputation: 217

How to measure execution time of methods on app startup

How can we find the execution time of each methods on app startup using Android Studio's Profiler . I need to find the methods that are making the app slow to start.

Upvotes: 1

Views: 2532

Answers (1)

solaza
solaza

Reputation: 1291

Here you have official documentation. It is well documentated. It depends a bit on version of Android Studio that you are using.

But in short:

Android Studio 3.4.1

enter image description here

enter image description here

You click CPU and "Record".

enter image description here

After you finish recording you can select what you want to see. enter image description here

Hover on methods you want to see.

enter image description here

Upvotes: 2

Related Questions