مانیتور دستگاه اندروید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
مانیتور دستگاه Android در Android Studio 3.1 منسوخ شد و از Android Studio 3.2 حذف شد . ویژگیهایی که میتوانید از طریق مانیتور دستگاه Android استفاده کنید با ویژگیهای جدیدی جایگزین شدهاند. جدول زیر به شما کمک می کند تصمیم بگیرید که به جای این ویژگی های منسوخ و حذف شده از کدام ویژگی ها استفاده کنید.
جزء مانیتور دستگاه Android | آنچه شما باید استفاده کنید |
---|
Dalvik Debug Monitor Server (DDMS) | این ابزار منسوخ شده است. در عوض، از Android Profiler در Android Studio نسخه 3.0 و بالاتر برای نمایه کردن CPU، حافظه و استفاده از شبکه برنامه خود استفاده کنید. اگر میخواهید سایر کارهای اشکالزدایی را انجام دهید، مانند ارسال دستورات به دستگاه متصل برای راهاندازی انتقال پورت، انتقال فایلها، یا گرفتن اسکرین شات، از پل اشکالزدایی Android ( adb ) ، شبیهساز Android ، Device Explorer یا پنجره Debugger استفاده کنید. . |
Traceview | این ابزار منسوخ شده است. برای بررسی فایلهای .trace که با ابزارسازی برنامهتان با کلاس Debug گرفته شدهاند، ردیابیهای روش جدید را ضبط کنید، فایلهای .trace را صادر کنید، و استفاده از CPU را در زمان واقعی فرآیندهای برنامهتان بررسی کنید، از نمایهساز CPU Android Studio استفاده کنید. |
سیستراس | اگر نیاز به بررسی فرآیندهای سیستم بومی و آدرس دهی جابجایی UI ناشی از فریم های افت کرده دارید، از systrace از خط فرمان یا System Trace ساده شده در نمایه CPU استفاده کنید. CPU Profiler ویژگی های بسیاری را برای پروفایل کردن فرآیندهای برنامه شما ارائه می دهد. |
ردیاب برای OpenGL ES | از Android GPU Inspector استفاده کنید. |
نمایشگر سلسله مراتبی | اگر می خواهید سلسله مراتب نمایش برنامه خود را در زمان اجرا بررسی کنید، از Layout Inspector استفاده کنید. اگر میخواهید سرعت رندر طرحبندی برنامه خود را نمایه کنید، از Window.OnFrameMetricsAvailableListener همانطور که در این پست وبلاگ توضیح داده شده است استفاده کنید. |
پیکسل پرفکت | از Layout Inspector استفاده کنید. |
ابزار ترافیک شبکه | اگر میخواهید نحوه و زمان انتقال دادهها را از طریق شبکه مشاهده کنید، از نمایهگر شبکه استفاده کنید. |
مانیتور دستگاه Android را راه اندازی کنید
برای راه اندازی برنامه مستقل Device Monitor در Android Studio نسخه 3.1 و پایین تر، موارد زیر را در خط فرمان در پوشه android-sdk /tools/
وارد کنید:
monitor
سپس می توانید با انتخاب دستگاه از قسمت Devices ، ابزار را به دستگاه متصل متصل کنید. اگر در مشاهده پنجره ها یا پنجره ها مشکل دارید، Window > Reset Perspective را از نوار منو انتخاب کنید.
توجه: هر دستگاه را می توان تنها به یک فرآیند دیباگر در یک زمان متصل کرد. بنابراین، برای مثال، اگر از Android Studio برای اشکالزدایی برنامه خود در دستگاهی استفاده میکنید، باید قبل از پیوست کردن فرآیند اشکالزدایی از مانیتور دستگاه Android، دیباگر Android Studio را از دستگاه جدا کنید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]