edgepulse 0.2.2
edgepulse: ^0.2.2 copied to clipboard
Flutter plugin for EdgePulse — captures real memory, thermal state, battery, and CPU on Android and iOS during on-device AI inference.
Changelog #
0.2.2 — 2026-10-06 #
Fixed #
- Added top-level
example/example.dartfor pub.dev example detection and 160/160 Pana score compliance
0.2.1 — 2026-10-06 #
0.2.0 — 2026-10-06 #
Added #
PlatformMetricCollector— reads real device metrics via Flutter MethodChannel- Android Kotlin native plugin (
EdgePulsePlugin.kt):captureMemory: Debug.getPss() for accurate process memory in MBcaptureThermal: PowerManager.currentThermalStatus (API 29+)captureBattery: BatteryManager.CURRENT_NOW in milliampscaptureCpu: /proc/stat utilisation ratiogetDeviceInfo: Build.MODEL, MANUFACTURER, VERSION.RELEASE, SDK_INT
- iOS Swift native plugin (
EdgePulsePlugin.swift):captureMemory: mach_task_basic_info resident_sizecaptureThermal: ProcessInfo.thermalState (iOS 11+)captureBattery: UIDevice.batteryLevel (level fraction 0.0–1.0)captureCpu: host_statistics HOST_CPU_LOAD_INFOgetDeviceInfo: UIDevice model and systemVersion
edgepulse.dartre-exports all ofedgepulse_core+PlatformMetricCollector- Example Flutter app demonstrating 5-run trace on a real device
Notes #
- iOS battery returns level fraction (0.0–1.0), not milliamps. See docs/ios-battery-note.md for handling both platforms.
- Minimum Android API: 21. Thermal state requires API 29.
- Minimum iOS: 12.0. Swift 5.0.