Monitoraggio dispositivi Android
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Android Device Monitor è stato ritirato in Android Studio
3.1 e rimossa da Android Studio 3.2. Le funzionalità che potresti usare
tramite Android Device Monitor sono state sostituite da nuove funzionalità. La tabella
di seguito ti aiuta a decidere quali funzionalità usare al posto di quelle deprecate
e le funzionalità rimosse.
Componente Android Device Monitor | Cosa dovresti usare |
Dalvik Debug Monitor Server (DDMS) |
Questo strumento è stato ritirato. Utilizza invece
Android
Profiler in Android Studio 3.0 e versioni successive per profilare
di utilizzo di CPU, memoria e rete
da parte dell'app.
Se vuoi eseguire altre attività di debug, ad esempio l'invio di comandi
a un dispositivo connesso per configurare il port forwarding, trasferire file
acquisisci screenshot, quindi utilizza
Android Debug Bridge (adb ),
Emulatore Android,
Esplorazione dispositivi oppure
Finestra di debug.
|
TraceView |
Questo strumento è stato ritirato. Per ispezionare .trace file
acquisito da
instrumentare la tua app con la classe Debug ,
registrare nuove tracce di metodi, esportare file .trace e
controllare in tempo reale l'utilizzo della CPU per i processi della tua app, usa
Monolocale
Profilo CPU.
|
Sistrace |
Se devi ispezionare i processi di sistema nativi e gestire l'UI
jank causati da frame interrotti, utilizza
systrace
dalla riga di comando o dallo strumento Sistema semplificato
Traccia nella CPU
Profiler. CPU Profiler offre molte funzionalità
profilazione dei processi dell'app.
|
Tracer per OpenGL ES |
Usa l'Ispettore GPU Android.
|
Visualizzatore gerarchia |
Se vuoi esaminare la gerarchia delle visualizzazioni dell'app in fase di runtime, usa
Layout Inspector.
Se vuoi profilare la velocità di rendering del layout della tua app,
usa Window.OnFrameMetricsAvailableListener
come descritto in questo post del blog.
|
Pixel Perfect |
Utilizza
Layout Inspector. |
Strumento Traffico di rete |
Se hai bisogno di sapere come e quando la tua app trasferisce i dati su un
utilizza la funzione Rete
Profiler.
|
Avvia Monitoraggio dispositivo Android
Per avviare l'applicazione autonoma Monitoraggio dispositivo in Android Studio 3.1 e
in basso, inserisci quanto segue nella riga di comando
Directory android-sdk/tools/
:
monitor
Potrai quindi collegare lo strumento a un dispositivo connesso selezionandolo
dal riquadro Dispositivi. Se hai problemi a visualizzare riquadri o finestre,
Seleziona Finestra > Reimposta prospettiva dalla barra dei menu.
Nota:ogni dispositivo può essere collegato a un solo debugger
processo alla volta. Ad esempio, se utilizzi Android Studio per eseguire il debug
la tua app su un dispositivo, devi scollegare il debugger di Android Studio da
il dispositivo prima di collegare un processo di debug dal dispositivo Android
Monitora.
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[null,null,["Ultimo aggiornamento 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."]]