You can capture
dumpsys output from within
Android Monitor and
display the file in the Code Editor. The Captures window lists the
system information files so you can retrieve the information later for
Examining System Information for a Running App
To capture and view a snapshot of system information:
- Meet the prerequisites and dependencies.
- Open an app project.
- Run the app on a hardware device or emulator.
- Display Android Monitor.
- In the toolbar of the Android Monitor main window, click System Information and then select a menu item.
The menu items display different types of
Activity Manager State -
Package Information -
Memory Usage -
Memory Use Over Time -
Graphics State -
The information appears in an editable text file in the Code Editor.
Android Studio creates the system information file with the
package_yyyy.mm.dd_hh.mm.ss.txt using the
activity package (or project) name, year, month, day,
hour, minute, and second of the capture, for example,
Viewing Saved System Information
After you take a snapshot of system information, Android Studio automatically stores it so you can view it again.
To examine a saved system information file:
- Click in the main window.
- Open the System Information folder.
- Double-click the file to view it.
Or select View > Tools Windows > Captures.
The Captures window appears.
Working with System Information Files
You can rename, locate, and delete a system information file from within Android Studio.
Renaming a system information file
Rename a system information file from within Android Studio so it continues to appear in the Captures window.
To rename a system information file:
- In the Captures window, right-click the file and select Rename.
- In the dialog, specify the name of the file and click OK.
Locating a system information file on disk
You can quickly discover where Android Studio stored system information files on disk.
To locate a system information file on disk:
- In the Captures window, right-click a system information file and select Show or Reveal.
Android Studio opens an operating system file browser displaying the location where the file resides.
Note: If you move a system information file, Android Studio no longer displays the file in the Captures window. To display it, use File > Open. Also, rename a file from the Captures window and not in the operating system file browser.
Deleting a system information file
To delete a system information file:
- In the Captures window, right-click a system information file and select Delete.
Android Studio deletes the file from the Captures dialog and from disk.