[FR]: Add MemoryBudgetManager sample
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
Hướng nghiên cứu
Start with the specified sample path, then read the official App memory budgets guide linked in the issue. Implement the listed telemetry, budget transitions, lifecycle-aware listener and cache eviction, and document the manifest clauses and adb inspection commands. Confirm the sample demonstrates the API and its release-only usage; pull request #515 is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is there an existing FR for this?
- I have searched the existing issues
For which area is this FR?
General
Is it for a specific sample?
samples/performance/memory/src/main/java/com/example/platform/performance/memory/MemoryBudgetSample.kt
Describe the feature request
Add a sample module (:samples:performance:memory) demonstrating the Android 17 QPR2 (API level 37.2 / CINNAMON_BUN_2) MemoryBudgetManager API and <memory-budget> manifest declarations, following the official App memory budgets guide.
Scope:
- On-demand memory usage and budget telemetry (
processCurrentUsageBytes,packageCurrentUsageBytes,processBudgetBytes,packageBudgetBytes, andLIMIT_IS_DISABLED). - Discrete workload budget transitions (
processBudgetBytes,clearProcessBudget(), idempotency, andIllegalArgumentExceptionceiling validation). - Lifecycle-aware
OnOverBudgetListenerregistration (ON_START/ON_STOP) with fast, allocation-free high-yieldLruCache<String, Bitmap>eviction. - Documentation for
<memory-budget>manifest clauses, release-only usage, andadbinspection commands (dumpsys meminfoanddumpsys activity processes).
Code of Conduct
- I agree to follow this project's Code of Conduct
- Ngôn ngữ chính
- Kotlin
- Star
- 1.8k
- Fork
- 554
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của android/platform-samples
-
[Bug]:Đang mởbug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 3/100
android/platform-samples#517 ·
-
[Bug]:Đang mởbug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
android/platform-samples#512 ·
-
[FR]:Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
android/platform-samples#421 ·
-
[FR]: oppoa5sĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
android/platform-samples#417 ·
-
[Bug]:Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
android/platform-samples#416 ·
Tất cả issue của android/platform-samples
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MetrolistGroup/Metrolist#5426 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
micronizationlab/glafira-ai-hub#785 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sorsama/deepseek-harness-mobile#154 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày