dhis2_android_performance_optimization
Optimize and monitor performance for the DHIS2 Android app by addressing database queries, image loading, network requests, UI rendering, and memory usage. Enhances app stability and efficiency.
Instructions
Generate performance optimization patterns and monitoring for DHIS2 Android app
Input Schema
Name | Required | Description | Default |
---|---|---|---|
batterOptimization | No | ||
memoryManagement | No | ||
monitoring | No | ||
optimizationAreas | Yes | Areas to optimize |
Input Schema (JSON Schema)
{
"properties": {
"batterOptimization": {
"properties": {
"backgroundLimits": {
"description": "Respect background execution limits",
"type": "boolean"
},
"dozeMode": {
"description": "Handle Android Doze mode",
"type": "boolean"
},
"jobScheduler": {
"description": "Use JobScheduler for background tasks",
"type": "boolean"
}
},
"type": "object"
},
"memoryManagement": {
"properties": {
"imageCache": {
"description": "Implement efficient image caching",
"type": "boolean"
},
"leakDetection": {
"description": "Include memory leak detection",
"type": "boolean"
},
"proguard": {
"description": "Configure ProGuard optimization",
"type": "boolean"
}
},
"type": "object"
},
"monitoring": {
"properties": {
"analytics": {
"description": "App analytics service",
"enum": [
"firebase",
"google_analytics",
"custom"
],
"type": "string"
},
"crashReporting": {
"description": "Crash reporting service",
"enum": [
"crashlytics",
"bugsnag",
"custom"
],
"type": "string"
},
"performance": {
"description": "Enable performance monitoring",
"type": "boolean"
}
},
"type": "object"
},
"optimizationAreas": {
"description": "Areas to optimize",
"items": {
"enum": [
"database_queries",
"image_loading",
"network_requests",
"ui_rendering",
"memory_usage"
],
"type": "string"
},
"type": "array"
}
},
"required": [
"optimizationAreas"
],
"type": "object"
}