[FR]: Add MemoryBudgetManager sample
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 20/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Kotlin
- Sterne
- 1.8k
- Forks
- 554
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus android/platform-samples
-
[Bug]:Offenbug
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 3/100
android/platform-samples#517 ·
-
[Bug]:Offenbug
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 1/100
android/platform-samples#512 ·
-
[FR]:Offenenhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 5/100
android/platform-samples#421 ·
-
[FR]: oppoa5sOffenenhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
android/platform-samples#417 ·
-
[Bug]:Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
android/platform-samples#416 ·
Alle Issues in android/platform-samples
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
MetrolistGroup/Metrolist#5426 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
micronizationlab/glafira-ai-hub#785 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
sorsama/deepseek-harness-mobile#154 ·
Maintainer antworten meist innerhalb von 1 Tag
-
0. Needs triage enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag