Meminfo: אוסף נתונים סטטיסטיים על הזיכרון כדי להראות כמה זיכרון PSS הוקצה והקטגוריות שבהן נעשה בו שימוש. משתמשים בפקודה adb shell dumpsys meminfo package-name או בהפעלה MemoryInfo.
Perfetto: אוסף נתוני ביצועים וזיכרון במכשיר ומציג אותם בממשק משתמש מבוסס-אינטרנט. Perfetto
תומך במעקב לפרקי זמן ארוכים ככל שנדרש, כך שאפשר לראות איך ה-RSS משתנה לאורך זמן.
מפעילים עקבות ארוכים מאפליקציית מעקב המערכת.
bugreport: מציג אם המשחק קרס כי נגמר לו הזיכרון או אם הוא נסגר על ידי LMK. משתמשים בפקודה adb bugreport bugreport-name או עוברים אל אפשרויות למפתחים > דיווח על באג.
גרפיקה
כדי להעריך ולשפר את צינור העיבוד של המשחק, אפשר להשתמש בכלים הבאים:
Android GPU Inspector (AGI): כלי לפרופיילינג של GPU. אתם יכולים לעקוב אחרי המשחקים שלכם ולמצוא תובנות מעניינות לגבי הביצועים, שיעזרו לכם לקבל החלטות לגבי אופטימיזציה של הגרפיקה. מידע נוסף
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Tools for optimizing your game\n\nTo prepare your environment for debugging and optimizing Android games, get\naccess to the following tools that help you analyze CPU usage and graphics\ncalls.\n\nCPU\n---\n\nUse the following tools to evaluate and improve your game's CPU performance:\n\n- **Systrace:** Records CPU and disk activity over a short period of time. [Access this tool from the command line](/topic/performance/tracing/command-line), or [use the on-device tool](/topic/performance/tracing/on-device) that's available when running Android 9 (API level 28) or higher. Also see the [overview of system tracing](/topic/performance/tracing).\n- **CPU Profiler:** Inspect your game's CPU usage and thread activity, either in real time or from recorded traces. See documentation on [how to access and use the CPU Profiler](/studio/profile) within Android Studio. A [standalone version of this profiler](/studio/profile#standalone-profilers) that doesn't require a Gradle project at launch is installed with both [Android Studio](/studio) and the [Android Game Development Extension](/games/agde).\n\nMemory\n------\n\n- **Meminfo:** Collects memory statistics to show how much [PSS memory](/topic/performance/memory-management#calculating_memory_footprint) was allocated and the categories for which it was used. Use the command `adb shell dumpsys meminfo `\u003cvar translate=\"no\"\u003epackage-name\u003c/var\u003e or the [`MemoryInfo`](/reference/android/os/Debug.MemoryInfo) call.\n- **Perfetto:** Collects performance and memory information on a device and displays it in a web-based UI. [Perfetto](https://docs.perfetto.dev) supports arbitrarily long traces so you can view how RSS changes over time. Enable long traces from the [System Tracing app](/topic/performance/tracing/on-device).\n- **bugreport:** Shows if your game crashed because it ran out of memory or if it was killed by the [LMK](/topic/performance/memory-management#low-memory_killer). Use the command `adb bugreport `\u003cvar translate=\"no\"\u003ebugreport-name\u003c/var\u003e or go to **Developer Options \\\u003e Bug report**.\n\nGraphics\n--------\n\nUse the following tools to evaluate and improve your game's display pipeline:\n\n- **Android Frame Pacing API:** Helps synchronize your game engine's rendering process with Android's display pipeline. [Download from the Android Open Source Project (AOSP)](https://android.googlesource.com/platform/frameworks/opt/gamesdk/), or [access the plugin from Unity 2019.2.0 Alpha 6](https://unity3d.com/unity/whats-new) or higher. Also [see documentation for the Android Frame Pacing API](/topic/performance/frame-pacing).\n- **Android GPU Inspector (AGI):** A GPU profiling tool. You can take traces of your games and find interesting performance insights to help you make graphics optimization decisions. [Learn more\n here.](/agi)\n\nAdditional resources\n--------------------\n\n- [Improve your game's performance](/games/optimize)\n- [GAPID](https://gapid.dev)"]]