Android Device Monitor
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Android Device Monitor sudah tidak digunakan lagi di Android Studio
3.1 dan dihapus dari Android Studio 3.2 Fitur yang biasanya dapat Anda gunakan
pada Android Device Monitor telah digantikan oleh fitur baru. Tabel
di bawah membantu Anda memutuskan fitur mana yang harus digunakan, bukan fitur yang sudah tidak
digunakan lagi atau dihapus.
Komponen Android Device Monitor | Fitur yang seharusnya digunakan |
Dalvik Debug Monitor Server (DDMS) |
Alat ini tidak digunakan lagi. Sebagai gantinya, gunakan
Android
Profiler di Android Studio 3.0 dan yang lebih baru untuk memprofilkan
penggunaan CPU, memori, dan jaringan aplikasi Anda.
Jika ingin menjalankan tugas proses debug lainnya, seperti mengirim perintah
ke perangkat terhubung untuk menyiapkan penerusan port, mentransfer file, atau
mengambil screenshot, gunakan
Android Debug Bridge (adb ),
Android Emulator,
Device Explorer, atau
jendela Debugger.
|
Traceview |
Alat ini tidak digunakan lagi. Untuk memeriksa file
.trace yang diambil dengan
melengkapi aplikasi Anda dengan class Debug ,
merekam aktivitas metode baru, mengekspor file .trace , dan
memeriksa penggunaan CPU real-time dari proses aplikasi Anda, gunakan
CPU Profiler
Android Studio.
|
Systrace |
Jika perlu memeriksa proses sistem native dan mengatasi jank
UI yang disebabkan oleh frame yang hilang, gunakan
systrace
dari command line atau System
Trace yang disederhanakan pada CPU
Profiler. CPU Profiler menyediakan banyak fitur untuk
memprofilkan proses aplikasi Anda.
|
Tracer for OpenGL ES |
Gunakan Android GPU Inspector.
|
Hierarchy Viewer |
Jika ingin memeriksa hierarki tampilan aplikasi Anda selama runtime, gunakan
Layout Inspector.
Jika ingin memprofilkan kecepatan rendering tata letak aplikasi Anda,
gunakan Window.OnFrameMetricsAvailableListener
seperti yang dijelaskan dalam postingan blog ini.
|
Pixel Perfect |
Gunakan
Layout Inspector. |
Alat Traffic Jaringan |
Jika perlu melihat bagaimana dan kapan aplikasi Anda mentransfer data melalui
jaringan, gunakan Network
Profiler.
|
Memulai Android Device Monitor
Untuk memulai aplikasi Device Monitor mandiri di Android Studio 3.1 dan
yang lebih lama, masukkan kode berikut pada command line di
direktori android-sdk/tools/
:
monitor
Kemudian, Anda dapat menautkan alat tersebut ke perangkat yang terhubung dengan memilih
perangkat dari panel Device. Jika mengalami kesulitan untuk melihat panel atau jendela,
pilih Window > Reset Perspective dari panel menu.
Catatan: Setiap perangkat hanya dapat dipasang ke satu proses debugger
pada satu waktu. Jadi, misalnya, jika Anda menggunakan Android Studio untuk men-debug
aplikasi di suatu perangkat, Anda perlu memutuskan sambungan debugger Android Studio dari
perangkat tersebut sebelum mengaitkan proses debugger dari Android Device
Monitor.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Android Device Monitor was **deprecated in Android Studio\n3.1 and removed from Android Studio 3.2**. The features that you could use\nthrough the Android Device Monitor have been replaced by new features. The table\nbelow helps you decide which features you should use instead of these deprecated\nand removed features.\n\n| Android Device Monitor component | What you should use |\n|----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Dalvik Debug Monitor Server (DDMS)** | This tool is deprecated. Instead, use [**Android Profiler**](/studio/profile) in Android Studio 3.0 and higher to profile your app's CPU, memory, and network usage. If you want to perform other debugging tasks, such as sending commands to a connected device to set up port-forwarding, transfer files, or take screenshots, then use the [**Android Debug Bridge (`adb`)**](/studio/command-line/adb), [**Android Emulator**](/studio/run/emulator), [**Device Explorer**](/studio/debug/device-file-explorer), or [**Debugger window**](/studio/debug). |\n| **Traceview** | This tool is deprecated. To inspect `.trace` files captured by [instrumenting your app](/studio/profile/generate-trace-logs) with the [Debug](/reference/android/os/Debug) class, record new method traces, export `.trace` files, and inspect real-time CPU usage of your app's processes, use the Android Studio [**CPU profiler**](/studio/profile/cpu-profiler). |\n| **Systrace** | If you need to inspect native system processes and address UI jank caused by dropped frames, use [**`systrace `**](/topic/performance/tracing/command-line) from the command line or the simplified **System Trace** in the [**CPU Profiler**](/studio/profile/cpu-profiler). The **CPU Profiler** provides many features for profiling your app's processes. |\n| **Tracer for OpenGL ES** | Use the **[Android GPU Inspector](/agi)**. |\n| **Hierarchy Viewer** | If you want to inspect your app's view hierarchy at runtime, use [**Layout Inspector**](/studio/debug/layout-inspector). If you want to profile the rendering speed of your app's layout, use **[Window.OnFrameMetricsAvailableListener](/reference/android/view/Window.OnFrameMetricsAvailableListener)** as described in [this blog post](https://android-developers.googleblog.com/2017/08/understanding-performance-benefits-of.html). |\n| **Pixel Perfect** | Use **[Layout Inspector](/studio/debug/layout-inspector)**. |\n| **Network Traffic tool** | If you need to view how and when your app transfers data over a network, use the [**Network Profiler**](/studio/profile/network-profiler). |\n\nStart Android Device Monitor\n----------------------------\n\nTo start the standalone Device Monitor application in Android Studio 3.1 and\nlower, enter the following on the command line in the\n\u003cvar translate=\"no\"\u003eandroid-sdk\u003c/var\u003e`/tools/` directory: \n\n```\nmonitor\n```\n\n\u003cbr /\u003e\n\nYou can then link the tool to a connected device by selecting the device\nfrom the **Devices** pane. If you have trouble viewing panes or windows,\nselect **Window \\\u003e Reset Perspective** from the menu bar.\n\n**Note:** Each device can be attached to only one debugger\nprocess at a time. So, for example, if you are using Android Studio to debug\nyour app on a device, you need to disconnect the Android Studio debugger from\nthe device before you attach a debugger process from the Android Device\nMonitor."]]