π§ DroidDex Flutter A Flutter plugin for DroidDex β Blinkitβs Android performance profiling library. This plugin bridges your Flutter app with native Kotlin performance signals using MethodChannel and EventChannel.
π Read the original blog: How Blinkit Cracked Android's Performance Puzzle with Droid Dex
π§βπ» GitHub (Kotlin SDK): grofers/droid-dex
droid_dex_flutter
π Features π Get performance levels for:
CPU
Battery
Network
Storage
Memory
βοΈ Weighted performance scoring via custom importance
π Real-time performance updates using event streams
β‘οΈ Simple API with enums and model wrappers
π¦ Installation Add this to your pubspec.yaml:
yaml
dependencies: droid_dex_flutter: ^<latest_version> Then run:
flutter pub get π§ͺ Example Here's a minimal example:
final droidDex = DroidDexFlutter(); await droidDex.init();
final staticLevel = await droidDex.getWeightedPerformanceLevel(pairs); print("Static Level: ${staticLevel.name}");
// Start real-time stream final stream = await droidDex.getWeightedPerformanceLevelLiveData(pairs); stream.listen((level) { print("Live Level: ${level.name}"); }); For a complete working demo, check the example app.
π― API Overview Initialization
await DroidDexFlutter().init(); Get Performance Level
Future
Future
Future<Stream
π Resources π DroidDex GitHub Repository
π° Medium Article (Blinkit Engineering)
π€ Contributing Pull requests and issue reports are welcome! If you find a bug or have a feature request, feel free to open an issue on GitHub.