Manish Singla
Manish Singla

Reputation: 1361

How to use Hierarchy Viewer now in android studio 2021?

Earlier we can use hierarchy-viewer for "Activities Stack". Not Layout Inspactor but like in adb shell dumpsys activity

https://developer.android.com/studio/profile/hierarchy-viewer#start

Upvotes: 1

Views: 677

Answers (1)

SpiritCrusher
SpiritCrusher

Reputation: 21053

The Alternate is clearly mentioned in Docs .

https://developer.android.com/studio/profile/hierarchy-viewer

Hierarchy Viewer is deprecated. If you're using Android Studio 3.1 or later, you should instead use Layout Inspector to inspect your app's view hierarchy at runtime. To profile the rendering speed of your app's layout, use Window.OnFrameMetricsAvailableListener.

Upvotes: 1

Related Questions