ردیابی سیستم را ثبت کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک ردیابی سیستم فعالیتها و استفاده از منابع در سراسر سیستم را به شما نشان میدهد، بنابراین میتوانید نحوه برنامهریزی و اجرای فرآیندهای برنامه خود را مشاهده کنید. نمای ردیابی سیستم در نمایه استودیو اندروید معمولاً برای بررسی موارد زیر استفاده می شود:
- نحوه توزیع فرآیندهای برنامه و سیستم در هسته ها و رشته های دستگاه.
- UI چقدر روان ارائه می شود.
- مصرف برق در سطح دستگاه و برنامه.
این صفحه نمای کلی از متداول ترین تصاویر استفاده شده در نمای ردیابی سیستم را ارائه می دهد. برای جزئیات بیشتر در مورد تجسم هایی که در اینجا توضیح داده نشده اند، به واژه نامه نمودار مراجعه کنید. برای مثالهای دقیقتر از اینکه برای چه باید از ردیابی سیستم استفاده کرد، به صفحات دیگر در این بخش مراجعه کنید.
بعد از اینکه یک ردیابی سیستم را ثبت کردید ، تجسم های زیر را می بینید که در یک جدول زمانی نمایش داده می شوند. شما باید بر نحوه ارتباط منابع مختلف سیستم تمرکز کنید. به عنوان مثال، اگر متوجه یک سنبله در ریل برق مودم شدید، باید به بخش threads بروید و ببینید چه فعالیت نخی میتواند باعث ایجاد سنبله در آن زمان شود.

- استفاده از CPU : میزان استفاده از CPU از برنامه شما را به عنوان درصدی از کل ظرفیت CPU موجود بر حسب زمان نشان می دهد. بخشی از جدول زمانی را برای فیلتر کردن جزئیات مربوط به آن دوره زمانی برجسته کنید.
- تعاملات : تعامل کاربر و رویدادهای چرخه عمر برنامه را در یک جدول زمانی نشان می دهد (نیاز به یک فرآیند برنامه قابل اشکال زدایی و دستگاهی دارد که API سطح 26 یا بالاتر را اجرا می کند).
- نمایشگر : اطلاعات مربوط به نرمافزار UI برنامه شما را نشان میدهد. Lifecycle را انتخاب کنید تا بررسی کنید برنامه شما چقدر طول می کشد تا هر فریم را در رشته اصلی و
RenderThread
رندر کند. این اطلاعات برای بررسی تنگناهایی که باعث jank UI و نرخ فریم پایین می شوند مفید است. Threads : رشته هایی را نشان می دهد که برنامه شما و فرآیندهای مختلف سیستم روی آنها اجرا می شوند. برای آشنایی با نحوه استفاده از ردیابیهای سیستم برای بررسی و کمک به کاهش جابجایی UI، به تشخیص جابجایی UI مراجعه کنید.
نکته: هنگام بررسی جدول زمانی
Threads ، میانبرهای زیر در دسترس هستند:
- بزرگنمایی: W را فشار دهید یا چرخ ماوس را در حالی که Ctrl ( فرمان در macOS) را نگه داشته اید، حرکت دهید.
- کوچکنمایی: S را فشار دهید یا چرخ ماوس را در حالی که Ctrl را نگه دارید ( فرمان در macOS) به عقب ببرید.
- حرکت به چپ: A را فشار دهید یا در حالی که Space را نگه داشته اید، ماوس را به سمت راست بکشید.
- حرکت به سمت راست: D را فشار دهید یا در حالی که Space را نگه داشته اید، ماوس را به سمت چپ بکشید.
- گسترش یا کوچک کردن یک رشته: روی نام رشته دوبار کلیک کنید یا در حالی که یک رشته انتخاب شده است Enter را فشار دهید.
هسته های CPU : فعالیت هر هسته در دستگاه شما را نشان می دهد. مشاهده فعالیت بر اساس هسته ممکن است به شما ایده دهد که کدام یک از آنها هسته های "بزرگ" یا "کوچک" در پردازنده های مدرن موبایل هستند. اشاره گر را روی یک فعالیت رشته نگه دارید تا ببینید این هسته در آن زمان خاص روی کدام رشته در حال اجرا است.

حافظه پردازش (RSS) : مقدار حافظه فیزیکی را که در حال حاضر توسط برنامه استفاده می شود نشان می دهد. برای جزئیات بیشتر، به واژه نامه نمودار مراجعه کنید.
Power Rails : هنگامی که نمایه یک دستگاه فیزیکی را انجام می دهید ظاهر می شود. برای اطلاعات بیشتر، به بررسی مصرف برق مراجعه کنید.
باتری : میزان مصرف باتری برنامه شما را نشان می دهد.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Record a system trace\n\nA system trace shows you system-wide activities and resource usage, so you can\nsee how your app processes are scheduled and run. The system trace view in the\nAndroid Studio Profiler is commonly used to investigate the following:\n\n- How app and system processes are distributed across device cores and threads.\n- How smoothly the UI renders.\n- Power usage at both the device and app level.\n\nThis page provides an overview of the most commonly used visuals in the system\ntrace view. See the [chart glossary](/studio/profile/chart-glossary/flame-chart)\nfor more details about visualizations not described here. For more detailed\nexamples of what to use a system trace for, see the other pages in this section.\n\nAfter you [record a system trace](/studio/profile#start-profiling), you see the\nfollowing visualizations displayed over a timeline. You should focus on how\ndifferent system resources are correlated; for example, if you notice a spike in\nthe modem power rail, you should go to the threads section and see what thread\nactivity could be causing the spike at the time.\n\n- **CPU Usage**: Shows CPU usage of your app as a percentage of total available CPU capacity by time. Highlight a section of the timeline to filter to the details for that time period.\n- **Interactions** : Shows user interaction and app lifecycle events along a timeline (requires a [debuggable](/studio/profile#profileable-v-debuggable) app process and a device running API level 26 or higher).\n- **Display** : Shows info related to how smooth your app UI renders. Select **Lifecycle** to inspect how long it takes your app to render each frame on the main thread and `RenderThread`. This info is helpful for [investigating\n bottlenecks that cause UI jank and low\n framerates](/studio/profile/jank-detection).\n- **Threads** : Shows the threads that your app and various system processes run\n on. To learn about how to use system traces to investigate and help reduce UI\n jank, see [Detect UI jank](/studio/profile/jank-detection).\n\n **Tip:** When inspecting the **Threads** timeline, the following shortcuts are available:\n - **Zoom in:** Press \u003ckbd\u003eW\u003c/kbd\u003e or scroll the mouse wheel while holding \u003ckbd\u003eCtrl\u003c/kbd\u003e (\u003ckbd\u003eCommand\u003c/kbd\u003e on macOS).\n - **Zoom out:** Press \u003ckbd\u003eS\u003c/kbd\u003e or scroll the mouse wheel backward while holding \u003ckbd\u003eCtrl\u003c/kbd\u003e (\u003ckbd\u003eCommand\u003c/kbd\u003e on macOS).\n - **Pan left:** Press \u003ckbd\u003eA\u003c/kbd\u003e or drag mouse right while holding \u003ckbd\u003eSpace\u003c/kbd\u003e.\n - **Pan right:** Press \u003ckbd\u003eD\u003c/kbd\u003e or drag mouse left while holding \u003ckbd\u003eSpace\u003c/kbd\u003e.\n - **Expand or collapse a thread:** Double-click the thread name or press \u003ckbd\u003eEnter\u003c/kbd\u003e while a thread is selected.\n- **CPU cores** : Shows the activity on each core in your device. Viewing the\n activity by core might give you an idea of which ones are the [\"big\" or\n \"little\" cores](https://en.wikipedia.org/wiki/ARM_big.LITTLE) in\n modern mobile processors. Hold the pointer over a thread activity to\n see which thread this core is running on at that particular time.\n\n- **Process Memory (RSS)**: Shows the amount of physical memory currently in use\n by the app. For more details, see the chart glossary.\n\n- **Power Rails** : Appears when you profile on a physical device. For more info,\n see [Inspect power usage](/studio/profile/power-profiler).\n\n- **Battery**: Shows your app's battery usage."]]