Switch to the DDMS perspective, by selecting Window > Perspectives > DDMS.
In the Devices tab, select the device on which to run a trace. If no devices are listed, make sure your device is connected via USB cable and that debugging is enabled on the device.
Click the Systrace icon at the top of the Devices panel to configure tracing.
Set the tracing options and click OK to start the trace
In Android Studio, open an Android application project.
Open the Device Monitor by selecting Tools > Android > Monitor.