abbath0767
abbath0767

Reputation: 986

How to test performance in android?

Please tell me the most sensible and correct ways of measuring/layout inflating performance in the android environment.

For example i have RecyclerView. And i have 2 or more use case: what parent layout used for item - ConstraintLayout, RelativeLayout? How i check it? I can in binding view process and/or inflating process calculate operation time (stop - start time) and save it. When i scroll view, i take result, but i think this method soo bad and not accurate.

What you recommend? Maybe android or another or special instrument for test layout performance?

P.S.: I understand that this extreme savings, I just want to better understand the tools debug

Upvotes: 0

Views: 63

Answers (1)

Murat Karagöz
Murat Karagöz

Reputation: 37584

There is a whole chapter dedicated to this topic on the android developer guides. See here. For this particular case you can use the Hierarchy Viewer

Upvotes: 2

Related Questions