Go 기기에서 실행되는 앱은 Android 플랫폼에서 실행되는 기기와 마찬가지로 최종 사용자를 위한 성능을 발휘해야 합니다. CPU, 메모리, 그래픽, 네트워크, 기기 배터리와 같은 리소스의 비효율적인 사용을 최소화할 수 있는 여러 방법이 있습니다.
성능 문제를 해결하려면 프로파일링 및 벤치마킹 도구를 앱 성능 프로파일링에서 Android용으로 제공된 가이드와 함께 사용하면 됩니다.
테스트 요구사항
다음은 Android(Go 버전) 앱을 프로파일링하고 테스트할 때 유의해야 하는 몇 가지 주요 가이드라인입니다.
Android 8.1(API 수준 27) 및 이후 버전을 지원하는 기기에서 테스트합니다. CPU 성능이 결과에 영향을 미칠 수 있으므로 가능한 경우 에뮬레이터 대신 실제 기기를 사용하는 것이 중요합니다.
Android 스튜디오 메모리 프로파일러 또는 Perfetto와 같은 도구를 통해 RAM 사용량을 모니터링하여 소비되는 메모리 양을 확인합니다. 메모리 누수 및 메모리 변동을 식별하면 앱 비정상 종료와 전체적인 버벅거림을 줄일 수 있습니다.
특정 시스템 제약 조건에 따라 메모리를 점진적으로 해제하려면 onTrimMemory를 구현합니다.
이 콜백을 통해 앱이 리소스를 해제하면 전반적으로 시스템 반응 속도를 높일 수 있고 시스템이 프로세스를 더 오래 유지할 수 있도록 하여 앱의 최종 사용자 환경에 직접적인 이점을 제공할 수 있습니다. 자세한 내용은 ComponentCallbacks 문서를 참고하세요.
Android(Go 버전) 기기에서 실행되는 앱의 Android vitals 통계를 보려면 Google Play Console로 이동하여 다음 필터와 기기 구성을 설정합니다.
기기 유형: Android Go
Android 버전: 8.1 및 이후 버전
RAM: 2GB(Android 13 (API 수준 33) 및 이후 버전 기준) 기기 및 하드웨어 사양의 전체 목록은 하드웨어 최소 사양을 참고하세요.
그림 1. Play Console에서 다음 필터를 설정하여 Android(Go 버전) 기기에서 실행되는 앱의 측정항목을 확인합니다.
Android(Go 버전) 기기에서 실행되는 앱을 보려면 그림 2와 같이 기기 카탈로그에서 Android Go 필터를 적용하면 됩니다.
그림 2. Play Console에서 Android Go 기기 필터를 적용하여 Android(Go 버전) 기기에서 실행되는 사용자 측정항목을 가져옵니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 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,["# Test Android (Go edition) apps\n\nSimilar to devices running on the Android platform, apps on Go devices\nshould still be performant for end-users. There are ways to minimize inefficient\nuses of resources, such as CPU, memory, graphics, network, or device battery.\n\nTo fix performance issues, you can use the profiling and benchmarking tools,\nalong with the guidance provided for Android at\n[Profile your app performance](/studio/profile).\n\nTesting requirements\n--------------------\n\nHere are a few key guidelines to keep in mind when profiling and testing your\nAndroid (Go edition) app:\n\n- Test on a device that supports Android 8.1 (API level 27) or above. It's important to use real devices (if possible) instead of an emulator, as CPU performance may impact results.\n- Monitor your RAM usage through tools like Android Studio [Memory Profiler](/studio/profile/memory-profiler) or [Perfetto](https://perfetto.dev/docs/data-sources/memory-counters) to keep track of how much memory is being consumed. Identifying memory leaks and memory churn can lead to a reduction in app crashes and overall jank.\n - To incrementally release memory based on certain system constraints, you can implement [`onTrimMemory`](/reference/android/content/ComponentCallbacks2#onTrimMemory(int)). This callback allows apps to release resources to help provide a more responsive system overall, and also directly benefits the end-user experience for your app by allowing the system to keep your process alive longer. For more information, see the documentation on [`ComponentCallbacks`](/reference/android/content/ComponentCallbacks2).\n- Ensure that you disable all features [not supported](/guide/topics/androidgo#differences_from_android) on Android (Go edition).\n\nAndroid vitals for Go devices\n-----------------------------\n\nTo view [Android vitals](/topic/performance/vitals) statistics for your apps\nrunning on Android (Go edition) devices, navigate to the Google Play Console and\nset the following filters and device configurations:\n\n- **Device type**: Android Go\n- **Android version**: 8.1 \\& above\n- **RAM** : 2GB (as of Android 13 (API level 33) and higher). For a full list of device and hardware specifications, see [Minimum hardware specifications](/guide/topics/androidgo#hardware-reqs).\n\n**Figure 1.** Set the following filters in the Play console to see metrics for your apps running on Android (Go edition) devices.\n\nTo view any apps running specifically on Android (Go edition) devices, you\ncan apply the **Android Go** filter in the Device Catalog as shown in Figure 2.\n**Figure 2.** Apply the Android Go device filter in the Play console to fetch metrics for users running on Android (Go edition) devices."]]