Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Analyse performance of android app using Android Development Studio

What would be the best way to analyse performance of my app while using Android Development Studio?

like image 714
Mortalus Avatar asked Feb 16 '23 11:02

Mortalus


1 Answers

From Android Studio Tips and Tricks, on developer.android.com:

Debugging

When you build and run your app with Android Studio, you can view adb and device log messages (logcat) in the DDMS pane by clicking Android at the bottom of the window.

If you want to debug your app with the Android Debug Monitor, you can launch it by clicking Monitor in the toolbar. The Debug Monitor is where you can find the complete set of DDMS tools for profiling your app, controlling device behaviors, and more. It also includes the Hierarchy Viewer tools to help optimize your layouts.

So, have you tried clicking on the monitor button? It looks like a little green android. From there you can use all the regular tools.

As for the downvote, I can only assume it was for one of two reasons. Your question starts with "What would be the best way...", which is an opinion question flag in most eyes. More likely, though, you don't show any sign that you've looked for an answer yourself. The answer is verbatim from a highly visible documentation page, and there's probably even a tooltip in AS if you check the icons in the toolbar.

like image 61
Geobits Avatar answered Apr 06 '23 00:04

Geobits